View Full Version : How to "backtrack"
wood6994
06-23-2008, 06:14 PM
I have a few buttons in my movie that jump to other scenes on(rollover). I need to know how to jump back to the scene that the user was viewing before they rolled over the button.
Example: Movie Starts>Scene1>Scene2>(rollover shoots to Scene5)>rollout shoots back to Scene2.
atomic
06-23-2008, 06:18 PM
Store the previous scene's name in a variable, and use the variable on rollOut...
wood6994
06-24-2008, 03:10 PM
i did that. On each new scene i define my variable...
var curScene = "Scene 1";
If i type gotoAndPlay("Scene 1", 1) it works just fine, but when i use my variable in place of "Scene 1", it doesn't work... gotoAndPlay("curScene", 1);
I created a dynamic text box that prints the variable value, and from what I can tell, the variable correctly changes with each new scene.
wood6994
06-24-2008, 05:58 PM
ah, I got it. Nevermind. Thanks for your help. You pointed me in the right direction.
atomic
06-25-2008, 03:16 AM
Grrrrrrrrrreat! ;)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.