Is it possible to indicate to a movie clip to return to the original timeline? (AS3)


I’m designing an interactive piece in AS3, and here’s what I think I’m doing wrong (if someone could let me know how to fix it, I would be really appreciative!):

Everything is within movie clips. The viewer chooses an option, hovers and then the movie clip takes over, revealing information. Once the movie clip is over, however, I need for the viewer to have the same options as they did before they entered the movieclip… so I need for the AS3 to indicate to the movie clip that when it is finished playing, to go back to the original time line… is this possible?

Thanks in advance!

Anybody??? I can send the file??

If you want to go back to the particular frame then you can use the gotoAndPlay() method.

That’s what I’ve done. I put the mc on, for example frame labeled movie, and said basically when hover, gotoAndPlay(“movie”); … and that works just fine, but I haven’t figured out how to tell the mc to go back to that main timeline once finished playing???

Did you try _parent.gotoAndPlay() ?

Yes, and the whole file goes a little bonkers! It plays through the entire file, ignoring all of the other commands. … Not too sure what to do, or why that command doesn’t work? Any thoughts??

You can reference the main timeline with: _root.gotoAndPlay(1);

I tried that too, and it does the same thing as the _parent.gotoAndPlay(1);
Either one of these codes makes the entire file run through without listening to any other AS3 code that it has. It’s really very frusterating!!

Do you have any ideas why this wouldnt work??

Where are the options at within the movie and where are you placing the _parent.goto… and the _root.goto…?

I’ve placed those at the end of the movie clips - the ones that I want the user to go back to the original timeline when they are done. The other actions are simple this.stop(); - which I’ve placed at different places on the main timeline wherever applicable - and the first frame on the main timeline has the coding required to hover over buttons and make them launch into the movie clips associated.
I can send you the file if you would like…

All I’ve got is Flash 8. Doubt I can open the file. :frowning:

It seems like it should be working. I’m kinda at a loss for any solution. Wish I could be of more help. It is probably something simple though. :wink: If you upload the .fla, someone else might be able to take a look at it. :slight_smile:

That’s a good idea. Thanks for your help ;o)

Anybody wanna take a shot?!!