Saturday, July 26, 2008

Loading external variables from html

This brings a var in from html that is a string and converts it to a number.

var allFlashVars:Object = LoaderInfo(this.root.loaderInfo).parameters;
var currentNav:String;
var theLoadedVar:Number=Number(allFlashVars.currentNav);

No comments: