Groups | Blog | Home
all groups > flash actionscript > march 2007 >

flash actionscript : When :LoadVars is sloooow


David Stiller
3/28/2007 8:56:08 PM
BobAchgill,

[quoted text, click to view]

Given your sample code ...

[quoted text, click to view]

.... I'd say you've nailed it. Outside of any of this code, stop the
timeline -- stop() or this.stop() -- and start the timeline again in if that
success parameter is true. Is that what you're asking?


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

BobAchgill
3/28/2007 11:28:58 PM
When using :LoadVars and .load to load my variables... how can I keep from
going on to processing in the next frames (that will use those variables) until
the load is finished? Here is what my code looks like now.

+++++++++++++++++++++++++++++++++++++++++++++
var Menu_Story:LoadVars = new LoadVars();
Menu_Story.onLoad = function (success3:Boolean):Void {
if (success3) {
trace("Yes, able to load external file with variables."
} else {
trace("Unable to load external file with variables."
}
}
//Load Menu_Story variables
Menu_Story.load("Menu_Story.txt", _root);

AddThis Social Bookmark Button