1 Reply Latest reply on Feb 25, 2017 5:40 AM by kglad

    Actionscript 2 to load external text file only works on some machines

    marting23322943 Level 1

      Thanks for reading.

      I am creating an intranet page for the company I work for using adobe flash cs6 and actionscript 2.

      I have a button which when clicked loads an external html formatted text file and displays it on the page.

      This works perfectly on some computers but on others the word 'undefined' is displayed instead of the contents of the file. All the computer I've tried this on are running windows 7 and internet explorer 11 (I have tried google chrome also). The machine I have with flash cs6 on it works when debugging through flash, but does not work when I publish to an HTML file.

      The code I am using is as follows...

      myData = new LoadVars(); 
      myData
      .onLoad = function() { list.html=true;
      list
      .htmlText = this.Links; };
      myData
      .load("Published_Finished_Drawings.txt"); }

      I am assuming this is a windows/ie setting issue but any help would be greatly appreciated!