Posted By

visualadvance on 08/25/10


Tagged

html as3 flashvar


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

adrianparr
alptugan
thehumbledeveloper
rukarmr
shawntelle
tspitzr
dubogii


AS3: Grabbing Flashvar's From HTML


 / Published in: ActionScript 3
 

Grabs the flashvar parameter from the HTML called "filepath" or whatever you want.

  1. The HTML should have something like:
  2. <param name="flashvars" value="filepath=assets/swfs/preloader.swf" />
  3.  
  4. And you AS3 File needs:
  5. import flash.display.LoaderInfo;
  6. LoaderInfo(this.loaderInfo).parameters["filepath"]

Report this snippet  

You need to login to post a comment.