Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replaying a Scene using Symbol Menus

Status
Not open for further replies.

MukeshMak

Technical User
Aug 6, 2002
19
CH
Hi all,

I've got a bit of a problem.

I've created two scenes (for simplicity 1 + 2). On 1 I've created a movie symbol that acts as a navigation button allowing me to jump between scenes.

Within the menu movie several buttons are located that link to various scenes (on the 'press' mouse event the flash movie jumps to the next scene as expected - I've labelled the first frame at the start of scene 2 and the jump is achieved using gotoAndPlay with a stop() in the first frame of 2)

Obviously I am trying to reuse the menu symbol in scene 2. When I again click on the same button (from 2) it jumps to the beginning of the flash movie.

Can anyone help me with this problem...

Thanks.
 
What do you want to do with the button in scene2?

You will have to change the actions on that button because it has the gotoandplay(scene2) action attached and that's why it jumps at the begining.

Regards,
dragos.jpg

 
Hi,

Thanks for the reply.

In regard to your question... I wanted to use the button elements in the menu movie to reset the scene.

I've finally been able to do that... but... although the flash movie jumps to the beginning of the reset scene all symbol movies do not replay...

So the question remains... how to go about resetting these symbol movies?

Thanks for any help.
 
Sorry,

Should elaborate further... all the symbol movies reset only if I jump to a different scene and then go back to the scene I was originally on...

I want the scene itself to reset (with all symbol movies doing so also).

Thanks.
 
They have to all be told to re-set to their original state! You'll have to do this individually!

Rather than sending the movie back to scene 1, you could maybe re-load( since it's now in the user's cache) your whole movie on level 0, with:

loadMovieNumber("your.swf", 0);

That should reset everything. Regards,

oldman3.gif
 
Hi oldnewbie,

Thanks for the reply.

I don't realy want to reset the whole move. What I want to do is just reset that particular scene as well as all the symbols that were used in that scene.

You indicated that I can do this manually for each used symbol. How would I go about doing that?

Thanks.
 
As I said, unless you don't want to reset other symbols in other scenes at the same time, the easiest is really to reload your movie on _level0, thus resetting everything!

What are the symbols you want to reset? Movie clips mainly? Regards,

oldman3.gif
 
Thanks for your help.

Solved it usiing variables to control the movie clips themselves. It gives me a bit more control over the symbols themselves.

Cheers for the replies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top