View Full Version : loadmovie questions
superpuppets
12-10-2002, 01:51 AM
This code is on a button in the 10th layer.
I want it to load "portfolio.swf" on release on level 9, then i want it to go to the 30th frame on the 9th level. Then i want it to unload the menu layer "10".
on (release) {
loadMovieNum("portfolio.swf", 9);
_level9.gotoAndPlay(30);
unloadMovieNum(10);
}
Rupert
12-10-2002, 03:02 AM
Without checking too far into what you have done here I would be looking into issues of load time - loaded movies need time to "arrive" before you can take their coat, offer them a drink and kick them out the back to hang out at the BBQ by the pool. I think you will find you are trying to do everything too quickly here and some or all of it wont happen.
So.. maybe look at putting your gotoAndPlay(30) on frame one of the loaded movie, and then put your unloadMovie script on frame 30 or 31 etc. That should give everybody time to do their stuff.
Cool?
Cheers,
Rupert
superpuppets
12-10-2002, 03:20 AM
You can see the applaction here ( http://24.100.1.26/flash_text_thing/index_.html )
The drop down menu is on level 10 and the menu stuff is on level 11 and the content is on 9.
superpuppets
12-10-2002, 03:22 AM
what i want to accomplish is; I want all the portfolio stuff in one "portfolio.swf" and i want to use that dropdown menu to control that movie
Rupert
12-10-2002, 03:39 AM
ok I think I get you here..
You can set a variable like:
on (release) {
loadMovieNum("portfolio.swf", 9);
_root.sectionName = "web";
unloadMovieNum(10);
}
So now the variable is left hanging around after the nav has been unloaded.
Now in the first frame of you portfolio.swf you do something like:
if (_root.sectionName == "graphic"){
gotoAndPlay(10);
}
if (_root.sectionName == "web"){
gotoAndPlay(20);
}
if (_root.sectionName == "photo"){
gotoAndPlay(30);
}
if (_root.sectionName == "corporate"){
gotoAndPlay(40);
}
stop();
I haven't tested this but its one way you could get around it.
Cheers,
Rupert
superpuppets
12-10-2002, 03:59 AM
thanks man, I got a demo to work with
if (_level0.sectionName == "graphic") {
gotoAndPlay(10);
}
if (_level0.sectionName == "web") {
gotoAndPlay(20);
}
if (_level0.sectionName == "photo") {
gotoAndPlay(30);
}
if (_level0.sectionName == "corporate") {
gotoAndPlay(40);
}
and the other section of code moded for the demo.
Im going to work on the working copy now
superpuppets
12-10-2002, 04:39 AM
the new site is up @
http://24.100.1.26/flash_text_thing_2/index_.html
big thanks to Rupert_Freeman :-)
Now the next thing is making the movie load when you dont have the courser over it
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.