Nov
26
2008
|
| ||||||
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.
Follow this step :
Step 1 Creat new document with dimension 50 px X 50 px
Step 2 Create layer like this :
Step 3 in "backg" layer add backgroud color
Step 4 Go to the "status" layer , frame 1, and then create sound indicator to perform that sound is On
convert to symbol or press F8 on keyboard , name it btn1
press on image and add this script on (release) {
Step 5 Go to the "status" layer , frame 2, same with step 4, name it btn2, add action scriot on (release) {
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
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
|
| < Prev | Next > |
|---|






