View Full Version : variables to loadmovie - Please help!!!!!!
28dead
04-09-2003, 03:47 AM
variable to loadmovie
in the frame--------------------
check = wait;
if (check == true) {loadMovie("1.swf",_root.content);
}
on the button -------------------------
on (release) {tellTarget (_root) {check = true
}
}
the load movie works fine by itself, but betting it to activate with variables is something im doing wrong
Help!!!!! :-(
Rasta Gonzales
04-09-2003, 11:12 AM
my suggestion:
within the loadmovie (named eg. "loader"):
frame 1:
check=false;
stop();
frame 2:
if (check == true) {
loadMovie("1.swf",_root.content);
}
stop();
on the button:
on(release) {
loader.check=true;
loader.gotoAndStop(2);
}
Well - what happens?
"Loader" gets a predefined variable that sets the "stat of loading the external movie" to FALSE as a default value within frame 1.
Frame 2 contains what shall be done when the movie is loaded - but only if the "stat of loading the external movie" is somewhere set to TRUE.
Thats it. The button just sets the "stat of loading the external movie" within the loader to true and tells it to go to the actual loading-frame.
Keep in mind to define the correct path from loader to button.
Maybe this helps?!
Cheers
28dead
04-09-2003, 11:16 AM
That helps immensely and now i know a bit more, thankyou for being helpful!!!
B
Rasta Gonzales
04-09-2003, 11:23 AM
...I didn't actually try this code right now but I guess it should work.
Good luck!
:rolleyes: :rolleyes: :rolleyes: :confused: :rolleyes:
Rasta Gonzales
04-09-2003, 11:26 AM
Just a thing I forgot to add to the code:
Just to keep things fully functional you could say:
if (check == true) {
loadMovie("1.swf",_root.content);
stop();
}
else {
gotoAndStop(1);
}
This tells the loader to return to frame 1 if check is false. If true it starts loading and stays in frame 2.
Greez
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.