5 Replies Latest reply on Jan 16, 2007 4:02 AM by deven_delian20031977

    loadvars value

    jagguy99 Level 1
      Hi,

      I can't get the value of the loadVars value outside the onload function. IT works inside the function but I get no display outside.

      var nameVars= new LoadVars();
      var txt1:String;

      nameVars.onLoad=function(){

      trace("Loading");
      //text_var=nameVars.my;
      txt1=nameVars.files;
      trace(txt1); //works


      };
      nameVars.load(" http://localhost/flash/test2.php");
      trace(txt1); //fails
      trace(nameVars.files);//fails


      I want the value of namevars.files here?