To start with, make 2 buttons. 1 for ON and another, for OFF
Demonstration | ||
|
Macromedia Flash 8 Publisher's Description Driven by extensive, global customer input, Macromedia Flash 8 Professional marks a significant release that encompasses major advancements in expressive tools, video, quality user experiences, and mobile content authoring. Macromedia Flash Professional, free download. Macromedia Flash Professional 8.0: A major product release for Macromedia, Flash Professional 8 has many brand new features including: amazing graphic effects, integrated and stand-alone video encoding complete with support for alpha transparency, high-quality text. Macromedia Flash Player 8 (codenamed Maelstrom) was released on September 13, 2005. It was the last version to be released by Macromedia before the company was acquired by Adobe Systems in December 2005. Driven by extensive, global customer input, Macromedia Flash 8 Professional marks a significant release that encompasses major advancements in expressive tools, video, quality user experiences, and mobile content authoring. The new custom easing tool enables precise control over animation.
Next you need to create 2 Movie clips.
- For sound
- For buttons
Okay let’s start with the Sound Movie clip
- Create three keyframes.
- Insert stop action to all the keyframes.
- Insert your music into frame1.
- In frame2 insert the following code,
gotoAndStop(1); - In frame3 insert the following code,
gotoAndPlay(1);
Macromedia Flash 8 Professional
Now you are through with your Sound Movie clip.
Next, Lets 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();
}
Macromedia Flash 8 Crack
- Insert ON button into frame2.
- Select your ON button and insert the following code,
on (release) {
tellTarget (“../music”) {
nextFrame();
}
}
on (release) {
prevFrame();
}
- Insert your Sound Movie clip into your movie and name it “music” in your instance panel.
- Insert your Button Movie clip into your movie.
- Now press ctrl+enter to play your movie.
References: http://www.entheosweb.com/Flash/flash_sound_button.asp