code_junkie

How do I use FlashVars with ActionScript 3.0?

Nov 11th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. package {
  2. import flash.display.Sprite;
  3.  
  4. public class Main extends Sprite {
  5.  
  6. public function Main() {
  7. var test1:String = '';
  8.  
  9. if (this.loaderInfo.parameters.test1 !== undefined) {
  10. test1 = this.loaderInfo.parameters.test1;
  11. }
  12. }
  13. }
  14. }
  15.  
  16. var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
Add Comment
Please, Sign In to add comment