I have a problem when I try to use the loadVars class in an ActionScript 2 (CS3) file. Actually, it works fine in the debugger but it doesn't work at all from a web browser (IE or FF).
This is my AS code :
_root.testURL = "http://REMOTE_SERVER_IP:PORT/FILE.html";
var myLoadVars:LoadVars = new LoadVars();
_root.info.text = "Loading...";
myLoadVars.load(_root.testURL,myLoadVars);
myLoadVars.onload = function(success:Boolean) {
_root.info.text = "File loaded"; _root.sr.text = myLoadVars.sr;
}
I can see "File loaded" in the info text field, but the file is not called (I checked the server log) when the swf file is loaded into an HTML page and displayed by a web browser. Thus, _root.sr.text is set to undefined.
It may be a security issue, but I really can't see how to solve it. Could anyone help me?
Thanks.
Dorian.

New Topic/Question
Reply



MultiQuote




|