View Full Version : Will this work?
Annika
10-27-2002, 10:29 PM
:confused:
Hello... I am trying to write a script that loads a movie UNLESS it is already laoded...
This is what I have done, could you please check if it seems right?
on(release){
gotoAndStop("Scene1");
if("MyMovie.swf".framesloaded>=_totalframes){
gotoAndPlay("Scene1",1);
else{
}
loadMovieNum("MyMovie.swf",50);
Thanks for your input. I am very much a newbie:D
farafiro
10-28-2002, 08:42 AM
first, u either attach the loadMovie to a frame or to the button
then u put the checking script into a loop or an enter frame//say we want it to load in the frame 1
loadMovieNum("mc.swf",50)
//then we need to check if it's fully loaded, so we put that in frame 2
if(_level50._framesloaded >= _level50._totalframes){
gotoAndPlay(4)
}
//then we make a small loop to play untill the _level50 is fully loaded
//frame 3
gotoAndPlay(2)note that as I mentioned u can make that with an onEnterFrame method
Annika
10-28-2002, 03:05 PM
THANKS!!!:D
I really apreciate you helping me out!!!!!
Annika
farafiro
10-29-2002, 05:39 AM
nop, anytime my Flasher friend
Annika
10-30-2002, 04:56 PM
I have a follow up question to the code...
The MC I am loading into the main timeline has a preloader in it...
Will that play now or should the preloader be attatched to fram 2 and 3 in this code?
When the loading is done I want to go to "Scene 2" in my loaded MC...
How do I address that?
I am sorry about my very basic questions. I have tried to understand this reading the
manual and looking att tutorials but everywhere they are addressing instances.
What if you need to address something within your instance..
I must be dense!
I apreciate your help!:p
farafiro
10-31-2002, 05:39 AM
The preloader of the loaded move will work.
for the going to Scene, just give your frame a loable name and use it instead of using Scenes, and everything will be alright
Scenes are Evil
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.