0 Replies Latest reply on May 4, 2010 6:25 AM by TD.Kris

    LoaderInfo change from CS4 to CS5


      Hey guys, hoping somebody has an idea on this.  My code for loading in the FlashVars parameters was working in CS4.  I opened the file and published it in CS5.  Now all of my parameters are showing up as undefined.  My code is below let me know if you have any ideas on what changed.


      var gameid:String = new String;

      try {

          var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;

          gameid = paramObj["gameID"];

      } catch (error:Error) {

          trace("oops: "+error);

          //gameid = "2430";