Skip to main content
Participating Frequently
December 27, 2006
Answered

Selecting a frame in a movie clip

  • December 27, 2006
  • 5 replies
  • 353 views
Hi,

A little help is required.

I have a movie clip, that i need to display on all frames on the main timeline. I have animated the movie clip on its own timeline. However I don't want the movie clip to play intially when i load the movie. I only want it to play when a button is selected. Can anyone please help me to get the movie clip to only play once a button is clicked.

Thanks


This topic has been closed for replies.
Correct answer kglad
attached to the first frame of your movieclip place: stop();

on the main timeline drag your movieclip from your library and place it on frame one of the main timeline in its own layer at the depth you want.

in the properties panel assign an instance name for your movieclip, say mc.

if your button that will start your movieclip, has instance name btn1, use:

5 replies

kglad
Community Expert
Community Expert
December 28, 2006
put stop() on frame 1 and frame 10 of your movieclip. the code for you buttons need not change.
helpLauraAuthor
Participating Frequently
December 28, 2006
I have all my movies etc working so that each button plays a separate movie clip.

Within each movie I have start and stops mid way through the movie.

What i want to happen is, when a button is clicked once, i want it to play frame 2-10 then when it is clicked again I want it to play 11-20. How do I make it recognise its a second click. I was thinking of using the boolean feature, but i'm not sure how this would be used.

Can anyone help point me in the right direction?
kglad
Community Expert
Community Expert
December 28, 2006
you're welcome.
helpLauraAuthor
Participating Frequently
December 28, 2006
Thank You so much. This now works.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
December 28, 2006
attached to the first frame of your movieclip place: stop();

on the main timeline drag your movieclip from your library and place it on frame one of the main timeline in its own layer at the depth you want.

in the properties panel assign an instance name for your movieclip, say mc.

if your button that will start your movieclip, has instance name btn1, use: