Return to Snippet

Revision: 43984
at April 4, 2011 23:05 by marzsman


Initial Code
//Get them all
try {
	var keyStr:String;
	var valueStr:String;
	var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
	for (keyStr in paramObj) {
		valueStr = String(paramObj[keyStr]);
	}
} catch (error:Error) {
	trace(error.toString());
}

//get a single one
var string:String = root.loaderInfo.parameters['param'];

Initial URL

                                

Initial Description
Get parameters from a flash import

Initial Title
Get parameters from Javascript

Initial Tags
javascript

Initial Language
ActionScript 3