PDA

View Full Version : movie clips/sound



Cheese
July 24th, 2002, 05:46 AM
Hi there

I have a play and stop button you click play and the music plays and stop if you want to stop it but i also have two movie clips which i want to animate when you click play and stop when you click the stop button. How do i do this


Any help will be greatly appreciated

Thanks

DMX
July 24th, 2002, 06:37 AM
gotoAndPlay_rooot.yourmovieclip.

jsk
July 24th, 2002, 07:48 AM
Assuming that the movie clip isn't on frame 1 when it's playing and is on frame 1 when it's stopped you might try

if (mcInstance._currentFrame!=1) {
mcInstance.gotoAndStop(1)
} else {
mcInstance.play()
}