PDA

View Full Version : How can i detect if external text is fully loaded


turb
10-01-2003, 08:53 AM
Hi!

i'm using this to load external txt :

//Get External Source
home = new LoadVars();
home.load("php/home.php?nocache=" + random(65000));

... and want to know a way to stop timeline while home.loaded is set to true

vosgien
10-01-2003, 09:22 AM
Hi,
You can use the built in success method, like this:

stop();

//Get External Source
home = new LoadVars();
home.load("php/home.php?nocache=" + random(65000));
home.onLoad = function(success)
{
if (success)
{
yourtextbox.text = this.yourvarsname
gotoAndPlay("framelabel")
}
}

Hope that helps

Vosgien

turb
10-01-2003, 09:31 AM
thank alot vosgien .... work like a charm :D