Nov
26
2008
Sound On-Off Button PDF Print E-mail

HariesDesign.com - Like a sound player, this tutorials wil explain how to make sound button control just turn it on/turn it off. This is simple method.

sound on off - hariesdesign.com

Follow this step :

 

Step 1

Creat new document with dimension 50 px X 50 px

sound on off - hariesdesign.com 

 

Step 2

Create layer like this :

sound on off - hariesdesign.com

 

Step 3

in "backg" layer add backgroud color

sound on off - hariesdesign.com

 

Step 4

Go to the  "status" layer , frame 1, and then create sound indicator to perform that sound is On

sound on off - hariesdesign.com

convert to symbol or press F8 on keyboard , name it btn1

sound on off - hariesdesign.com 

 

press on image and add this script

on (release) {
nextFrame();
}

 

Step 5

Go to the "status" layer , frame 2,  same with step 4, name it btn2, add action scriot

on (release) {
prevFrame();

 

Step 6

Go to "sound" layer ,frame 1

then Import sound, go to File > Import > Import to stage

from Properties panel,find your sound file

sound on off - hariesdesign.com 

 

Step 7

Go to "ActionScript" layer,  frame 1

copy this code, insert to:

frame 1:

stop();

 

frame 2 :

stopAllSounds(); 

 

Done !

Press Ctrl+Enter to  test movie

 

Trackback(0)
Comments (1)Add Comment
barac
written by baracuda, July 08, 2009
bagus banget neh.....
thanks ya bro
report abuse
vote down
vote up
Votes: +0

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security code
Write the displayed characters


busy
 
< Prev   Next >

Gallery Photography

Login

Sponsors


Get Chitika Premium