Is there any fixed sequence in which onLoad and onData event handlers of LoadVars object is called.
And are there any chances that following code snippet written in the first frame of timeline lead to infinite loop showing the error “The script in your movie is making the Macromedia Flash Player to run slowly. Do you want to abort the script?”
stop();//stop till everything gets loaded
myLoad=new LoadVars();
myLoad.load(<someip>,myLoad);
myLoad.onLoad=getMy;
function getMy(success)
{
if(success)
{
play();//go ahead when everything is loaded
}
else
{
//show some message if loading unsuccessfull
}
}
which is correct method to use in this situation.
onLoad or onData?
Please reply as soon as possible.