all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

help: using a button to play a separate movie clip



help: using a button to play a separate movie clip Travis Schau
5/23/2004 3:44:24 PM
flash actionscript: hi,

on the main timeline, I have a button and a movie clip. The movie clip is set
to "stop" on frame 1. The end of the movie clip sends it back to frame 2, so it
loops. What I want is for the button to make the movie clip play. So upon
release, the button needs to advance the movie clip to frame 2, and from there
it'll loop.

I can't get this to work unless the button is inside the movie clip, and then
the button moves too, and it's just no good. Any ideas?? I hope I stated this
clearly enough.

Thanks,
Travis
Re: help: using a button to play a separate movie clip kglad
5/23/2004 5:04:59 PM
give your movieclip and instance name, say mc1. then attached to your button:

on(release){
mc1.gotoAndPlay(2);
Re: help: using a button to play a separate movie Travis Schau
5/24/2004 2:56:56 AM
thanks a lot! That did indeed work. Have a good one,

Re: help: using a button to play a separate movie kglad
5/24/2004 3:37:03 AM
AddThis Social Bookmark Button