Posted By

spastic on 06/25/09


Tagged

variables flash as3 loaderInfo


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dubogii


loaderinfo variables


 / Published in: ActionScript 3
 

pass variables from from url into flash

  1. var keyStr:String;
  2. var valueStr:String;
  3. var theVars:Array = new Array();
  4.  
  5.  
  6.  
  7. try {
  8.  
  9. var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
  10. for (keyStr in paramObj) {
  11. valueStr = String(paramObj[keyStr]);
  12. theVars.push({key:keyStr, val:valueStr});
  13.  
  14. }
  15.  
  16. init();
  17. } catch (error:Error) {
  18. trace(error.toString());
  19. }

Report this snippet  

You need to login to post a comment.