1 Reply Latest reply on Oct 15, 2009 5:04 AM by Ned Murphy

    How to pass variable from one swf to another swf

    prajaktakenjale

      I have declared one variable in one.fla file

      on a button press i am opening another swf file.

      code is as follows

           name = "personName";

           myButton.onRelease = function (){

           trace("on Release "+name);     // personName

       

           //loadMovie("mainPage.swf", _root);

           _root.loadMovie("mainPage.swf" );

       

      }

      I want to access 'name' variable in another swf file. ie (mainPage.swf)

       

      how do i do that?