I have a flash movie that reads an xml file in the same directory as the .swf. This works perfectly when I just try running the .swf file, but when I add it to my website it cant seem to load the xml file. The swf and xml are in the same directory on the site and I have also tried loading the xml from a url like this: test.load(‘http://www.mysite.com/flash/doors.xml’);
But this wouldnt work either 🙁 any ideas? I’m using Actionscript 2.Thanks.
var test:XML = new XML();
test.ignoreWhite = true;
test.load('doors.xml');
test.onLoad = function(success:Boolean){
if(success){
gotoAndPlay(2);
}
}
Hi maybe you have problems with security, try adding line before loading
I hope this helps.