/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getParams(documentRoot):Object { try { var params:Object = LoaderInfo(documentRoot.loaderInfo).parameters; var pairs:Object = {}; var key:String; for(key in params) { pairs.key = String(params.key); } } catch(e:Error) { return {}; } return params; }