|
Maa Graphics Services
» 2D Animation
» Architectural Rendering
» 3D Product Modeling
» 3D Exhibition Display
» Digital Illustration
» Book Illustrations
» Cartoon Drawings
» Medical Illustration
» Illustration
» Illustrations
» Portrait Illustrations
» Fashion Illustrations
» Logo Design
» Stationary Design
» Advertising Designs
» Banner Designs
» Brochures Designs
» Direct Mail Design
» Flyers Designs
» Folders Designs
» Image Clipping Paths
» News Letter Design
» Package Design
» Posters Designs
» Signage Designs
» Brochure Website
» E-Commerce Website
» Flash Website
» CMS Development
» Search Engine Optimising
» Website Content Writing
» E-mail Newsletter Design |
|
| Creating sound on-off button in
FlashMX 2004 |
IThis tutorial
will tell you how to create a simple Flash music on and off
button using Flash actionscript.
STEPS TO FOLLOW
Make 2 buttons. 1 for ON and another, for
OFF
Next you can create 2 Movie clips.
Then
gotoAndStop(1);
- In frame3 insert the following code,
gotoAndPlay(1);
Now you are finished with Sound Movie clip.
Then, start with the Button Movie clip
- Create 2 keyframes.
- Insert stop actions to both the keyframes.
- Insert OFF button into frame1.
- Select your OFF button and insert the following code,
on (release) {
tellTarget ("../music") {
stopAllSounds();
}
}
on (release) {
nextFrame();
}
- Insert ON button into frame2.
- Select the ON button and insert the following code,
on (release) {
tellTarget ("../music") {
nextFrame();
}
}
on (release) {
prevFrame();
}
- Insert the Sound Movie clip into
the movie and name it "music" in
the instance panel.
- Insert the Button Movie clip into the movie.
- Press ctrl+enter to play the movie.
|
|
|
|
|