Flash query

Associate
Joined
28 Sep 2004
Posts
135
Location
Gibraltar
Hi guys,

Im pretty new to flash so i hope the following is a common problem.

I just made a simple holiday flash banner for work, and i added a loading screen.
Everything works fine except one thing.

When I test it out with Flash MX 2004 and use simulate download, the loading bar plays fine from 0-100 as it should, but then when the flash movie actually starts playing, it isnt playing frmo the beginning of the flash movie, its starting from somewhere near the end.

Im not sure if there are some sort of start tags that u need to set or something, as i said im pretty new to it, but if any1 knows a way around this i would appreciate it :)

thanks
 
Dont use the simulate download as its not that accurate and reliable anyway. Just publish the movie and see if it works ok from there.
 
http://firefly.rar.gi/flash/preloading.html its still doing the same thing mate,

what it seems to be doing is starting the actual flash banner before its sposed to...its not waiting for the loading screen to get to 100% to start playing....its playing in the background :S if u know what i mean..

any1 know how to fix this?

also...just realised....none of my text is coming out in the flash banner...it appears locally tho :(
 
Last edited:
While its loading you need to setup a preloader loop to loop the loader until the whole thing is done loading. It seems like you dont have one of these as its playing the movie at the same time its loading (streaming). Have you got a preloader loop setup or are you just using some fancy loading graphics?
 
You just need something like

Code:
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
    nextScene();
} else {
    gotoAndPlay(1);
}

to hold the player at your first scene while the whole mov loads.
 
stop();
onEnterFrame = function(){
if (_root._framesloaded == _root._totalframes){
delete onEnterFrame;
play();
}
}

that is what i had originally on the first frame....but it doesnt work...it doesnt wait till its fully downloaded to play. Anything wrong with that code?
 
hmm

both swf files should be working now...can u try again?

dont open the html files tho its not working for some reason but the swf ones are :)
 
Back
Top Bottom