PDA

View Full Version : preloader



ossi747
January 21st, 2002, 05:43 AM
www.black-ops.dk (http://www.black-ops.dk)
Its a page for a Onlinge game Squad, for Delta force Landwarrior. where there is a statistik running ASP/FLASH.
took me a while to make it work.
now how do I make a preloader wait until ASP is done ?
go to site and click on stats

thx

upuaut8
January 22nd, 2002, 01:14 AM
If you're reading from an ASP you can do a couple things.
A) if your movie is using an onMovieClip(); command to function, loadVariables(); command, then you can add onClipEvent(data){
gotoAndPlay(myStartingFrame);
}

on clip event "data" will exicute when ever data completes it's load into the flash player.

In addition to that, you can simply put a variable at the end of your ASP, something like

flagLoaded=true;

then in your FLA you could use something thing
if (flagLoaded==true){
gotoAndPlay(myStartingFrame);
}

Both of these methods seem to work.. though I'm only just starting to explore them myself.