0

Flash ActionScript

myData = new LoadVars();

myData.onLoad = function() {

myText_txt.text = this.myVariable;

};

myData.load("http://www.myserver.com/test/myText.txt");

sjpatel
  • 59
  • 4
  • 10

1 Answers1

0

Are you by chance getting a failed (http404) call to a crossdomain.xml file on the server? Check out: http://kb2.adobe.com/cps/142/tn_14213.html

mondo
  • 334
  • 1
  • 2
  • 8
  • Thanks for your reply - myData = new LoadVars(); myData.onLoad = function() { myText_txt.text = this.myVariable; }; myData.load("http://www.myserver.com/test/crossdomain.xml"); – sjpatel Jun 28 '12 at 11:38
  • ------------------------------------------------------------------- --------------------------------------Am I right? – sjpatel Jun 28 '12 at 11:42
  • Close; you want the domain to be the DOMAIN where the request is coming from. Ie, where the HTML SHOWING this Flash is. Likely that is still "myserver", so it would be: domain="myserver.com". You can also use domain="*" if you want it to be read from anywhere. – mondo Jul 05 '12 at 18:22