7 Replies Latest reply on Jul 25, 2010 11:34 AM by Oli_Wales

    Dynamically loading text problems

    Oli_Wales Level 1

      I'm trying to load Text into my file, and i have it all set up i'm just not seeing anything loaded, i've been through tones of tutorials but i can't work out why my text isnt loading:

       

      Script:

       

      myData = new LoadVars();
      myData.onLoad = function() {
      myText = this.myVariable;
      };
      myData.load("myText.txt");

       

      "myText.txt" File:

       

      myVariable=

      Testing Testing 123

       

      Dynamic Text Box Instance

       

      myText

       

       

      (All files in the same directory and using AS2)

      By all accounts i would have thought this would have been simple enough to load, but i can't work it out When previewing im getting the message "undefined".