Groups | Blog | Home
all groups > flash (alternate) > january 2005 >

flash (alternate) : Testing for myLoadVars.loaded


ScareCrowe
1/16/2005 12:34:29 AM
What is the best way to test if variables from a PHP page have been fully
loaded and available to Flash?
I've tried putting myLoadVars.loaded into a while loop but it never
evaluates to true.(Snippet below)
I am assuming I must be doing it incorrectly and haven't been able to find a
working answer when I google it.

Thanks Much,

--ScareCrowe

<snippet>
myVars = new LoadVars();
myVars.load("http://mydomain/file.php");
while(apple == false){
if(myVars.loaded == false){
apple = false;
trace("Not Loaded Yet.");
}else{
apple = true;
trace("Okay Loaded.");
}
}
</snippet>

Andrew Bullock
1/19/2005 10:49:03 PM
[quoted text, click to view]

load the variables into an empty mc on the stage then put an on(data) on
that mc which will play your flash only when its loaded.


HTH

AddThis Social Bookmark Button
View Other Months
January 2005
February 2005