PDA

View Full Version : loading from database in flash


homerUK
02-02-2006, 12:00 AM
Hey..
Ive got two scenes in flash...

LOADER
MAIN

The loader will loop until the bytes loaded is done, and it will procede to the main scene. In the main scene I connect to the database and load my results from the DB....

my problem is, the loading screen doesnt take in to account loading from the DB as the code i use is:


myData = new LoadVars();
myData.load("load.php);

myData.onLoad = function() {

showResults(myData["numRows"]);


}


so the above will run through another function to display the results.. thats all ok - but I want the above to actually load when the LOAD scene is playing... I can probably store the results of the DB in an array, then in MAIN I will output this array...

what do other people do in this situation...?!
thanks for any help!

N_R_D
02-02-2006, 06:04 PM
you could use a stop and a success if statment to stop the time line, and wati for it to load.