View Full Version : Load Movie
CharlesJR
07-24-2002, 06:14 AM
I am connecting with my homepage(which itself is a movie) from another page in the site I'm working on via a "Home" button scripted with the "LoadMovie" command. It works great but I would like it to go directly to the last frame of the homepage movie, where the navigation buttons are. How would I script this?
Jesse
07-24-2002, 08:11 AM
One of our first threads discussed this:
http://www.actionscripts.org/forums/showthread.php3?s=&threadid=13
Basically you pass a variable when you load the Home movie. At the start of it's timeline the Home movie checks if that variable exists and if it has a certain value. If it does, then it jumps to a certain spot in the timeline. Is that what you were after?
CharlesJR
07-24-2002, 08:24 AM
Thank you Jesse....Yeah, that's more or less what I'm looking for...So it would be something like 'get, frame 191'...?
Jesse
07-24-2002, 09:10 AM
Your home would have something like:
if (jumpTo != undefined) {
_root.gotoAndStop(jumpTo);
}
Then when you call the Home SWF and want to jump to a certain place you'd use:
loadMovie("home.swf?jumpTo=someSection",0);
Where 'someSection' is a string defining the frame lable you want to jump to. Labels are best for this sort of thing.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.