Any Flash supremos on here?
Discussion
I'm gonna crash and burn if I don't sort this out!
O.K. - I have a main Flash movie that has a preloader routine. It loads an swf onto 20 different levels.
The main movie shouldn't start until all 20 are loaded.
If I click on the swf direct it works fine, but if I access the swf through a browser it skips the preload sequence (4 frames long) and starts the main movie.
What am I doing wrong?
O.K. - I have a main Flash movie that has a preloader routine. It loads an swf onto 20 different levels.
The main movie shouldn't start until all 20 are loaded.
If I click on the swf direct it works fine, but if I access the swf through a browser it skips the preload sequence (4 frames long) and starts the main movie.
What am I doing wrong?
Okay wil try to help (I don't use preloaders as my flash is on intranet/cds and constatnly pauses for user input so not a problem) but here goes...
You need to put in a goto and play action on the frame after the preloader check frame: I'll try to explain.
Simple preloader....
Have a frame at start with "loading please wait or what ever"
Set an action scrpt for that frame to the folowing
ifFrameLoaded (100) {
gotoAndPlay (5);
}
Where in this case frame number 100 is my last frame I want to load before continuing and frame 5 is where the movie starts.
okay now heres the glitch, the movie will continue through frame 1 onto 2 etc even if the frame 100 is not loaded as it simply returns false. so you have to repeat check until it is true.
So frame 2 must have the action scrpt of
gotoAndPlay (1);
Now the movie will loop round and round displaying "please wait" until frame 100 has loaded.
Thats the principal. Examples I have seen have used labels rather than frame numbers but I believe this method should still work.
Hope that helps.
>> Edited by smeagol on Thursday 12th June 23:34
You need to put in a goto and play action on the frame after the preloader check frame: I'll try to explain.
Simple preloader....
Have a frame at start with "loading please wait or what ever"
Set an action scrpt for that frame to the folowing
ifFrameLoaded (100) {
gotoAndPlay (5);
}
Where in this case frame number 100 is my last frame I want to load before continuing and frame 5 is where the movie starts.
okay now heres the glitch, the movie will continue through frame 1 onto 2 etc even if the frame 100 is not loaded as it simply returns false. so you have to repeat check until it is true.
So frame 2 must have the action scrpt of
gotoAndPlay (1);
Now the movie will loop round and round displaying "please wait" until frame 100 has loaded.
Thats the principal. Examples I have seen have used labels rather than frame numbers but I believe this method should still work.
Hope that helps.
>> Edited by smeagol on Thursday 12th June 23:34
I'm using levels though, so I use getbytes and totalbytes to check the status of each indivdual level, if there's more bytes to load it loops until all the bytes are loaded, (I think this is similar to your solution), then it checks to see if there's anymore swf's to be loaded and moves up one level if there is and begins loading in the bytes for that swf.
It seems as though it just runs through these first 4 frames. I'm wondering if the array I'm using doesn't work on browsers.
It does work, but just not off the web
Thanks though
>> Edited by schueymcfee on Friday 13th June 00:00
It seems as though it just runs through these first 4 frames. I'm wondering if the array I'm using doesn't work on browsers.
It does work, but just not off the web
Thanks though
>> Edited by schueymcfee on Friday 13th June 00:00
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff