Hello,
I’m new to actionscript/flash. I have on different layers: action, lilypad, frog_mc, button, water mask and sound. What I’d like is if the button is released, for the frog_mc (frog jumping off the lilypad) to play just once, and the water mask to move, and the sound to occur.
On the action layer I have:
//stop the movie clip when page loads
animated_mc.stop();
//when home button is pressed, play the movie clip
home_btn.onPress = function(){
animated_mc.play()}
The last frame of the frog layer: animated_mc.stop();
The first frame of the sound layer, which is close towards the end of the frog layer:
var water_splash = new Sound();
water_splash.attachSound(“water”);
if (home_btn.onRelease == true){
water.play}
The movie clip plays when the button is pressed, but the frog continuously jumps, and the sound, and water mask do not work.
I’ll be making several of these buttons to incorporate into a dreamweaver css file. Will I be making different swf files for each button?
Thanks for any help on this.
Janis