7 Replies Latest reply on May 19, 2009 11:56 AM by kglad

    I need some help with action script


      Hi all,


      OK I just finished watching a tutorial on how to load files to a Flash site Dynamically from a remote server. The first part was showing how to load a .txt file.


      I have created a dynamic test field and give it an instance name of myTextArea. Then I uploaded the .txt file to my server in a testing folder. At the beginning of the paragraph in the .txt file I put homeText= Then going back to Flash CS3 I made an Action Script layer and entered the following code there;


      var myLoadVars:LoadVars = new LoadVars;


      myLoadVars.load ("http://www.mysite.com/siteTesting/homePageText.txt");


      myLoadVars.onLoad = function (success:Boolean){
           myTextArea.text = this.homeText;


      But when I go to test the movie I get a "undefined" error (I guess it is an error) where the text should load in the dynamic text field. Can any one tell me what I am doing wrong? Thanks for any help.