|
-
anyone else hear that?
Talk to child
I'm updating a course from a previous developer who is no longer here, and, of course, the code is not commented and difficult to follow, but, there's a "shell" that loads an "interface" file which has the navigation controls which load other movie files using addChild. The calls look like (slide is the variable with the swf name):
Actionscript Code:
iFace.screen.back.addChild(slide);
One of the loaded files is a "home" file, which has several interactive areas within it.
The problem is that, if the user goes into the home file, selects an area, then hits the "menu" button on the interface, selects the home file again, it shows up with the area that the user selected previously still displayed. If they select another section and then go back to home, the file gets reset.
Any idea how I can "reset" the loaded file?
I tried putting the following on the menu button after the function call:
Actionscript Code:
iFace.screen.back.gotoAndPlay(1);
but no luck.
Thanks!!
Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.
-
Total Universe Mod
Might just wanna rebuild the site in Gaia 
There's any number of reason's the "state" isn't being properly handled, all of which suggest bad coding practice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|