5 Replies Latest reply on Apr 24, 2010 12:15 AM by AttaBoy2

    Importing externally stored as3 class code from XML?

    celebritymusic Level 1



      I have the following code string stored in an XML file:





      I've imported this to the global var...






      globals.data.navtest = test.toString();



      It works fine - if I trace(globals.data.navtest); it outputs MovieClip(parent).gotoAndStop(15);



      What I want to do now is actually use globals.data.navtest in my Flash project to execute MovieClip(parent).gotoAndStop(15);


      How do I do that?  Do I have to import it as something other than a string, or do I have to code something that tells flash "execute the code that is in globals.data.navtest" ?


      I want to keep all of the code in the XML tag, so I can change any of it without opening Flash CS4.


      Thanks for your help guys.