Simple Question! ------ Playing movieclip

I dnt know y i cant get this to work.

I have attached the file so you can see.

On my main stage i have a movie clip “ballMovie”

inside that movie clip, on the first frame i have a stop action, then on the second frame i have a frame label saying “play”.

Now back to the main stage.

At the end of the main stage i have a frame action saying stop, now i also want it to tell it to go to and play the frame label “play” inside ballMovie.

Get me?

Thanks :slight_smile:

oki… now u have an animation of a ball in the movieClip… you have the main stage where something happens…

what u have to do is give the ball movieClip an Instance Name… you do this by selecting the movieClip and going to the properties panel. Then go to the top left of the panel… u should see a textbox thats labeled “Instance Name”… change that to “ball” or something.

Then in the main timeline at whatever frame you want, you put in the following actions :

[AS]
ball.gotoAndPlay(2);
[/AS]

btw… I dont see your attachment :sure:

-Aditya
:thumb:

_root.ballMovie.gotoAndPlay(“play”);

If you want to use that in a button, you’ll have to add a handler. I think that’s what you mean.

im an idiot, i forgot the fla!!

here it is!

i did all the codes u guys mentioned above, but didnt work!!

oki… I dont know why exactly but your ballMovie was named for the first time in the frame with the actions to play the ballMovie…

I guess flash looks at frame actions first before looking at instance names(or something :crazy: )

SO I just made a keyframe before the actual ballMovie and reduced transparency to 0%…the ballMovie was named in this frame too… now it works…

in attachment is the working one…

cool thanks. But i dnt get y there has to be a keyfrme b4.
Doesnt really make sense y there should be one does it?