Hi,
I am trying to get my flash file to load xml data correctly, when i load loader.swf in the browser directly my xml is loaded and the movie functions correctly.
However when i embed and load the loader.swf from the index.html file, my xml is not loaded.
I have four files-
/test/index.html
/flash/loader.swf
/flash/house.swf
/flash/xml/data.xml
The xml loading code appears in the house.swf as follows:
The loader.swf loads the house.swf using the loadClip method in conjunction with the MovieClipLoader class.
Does anyone know why the xml isn't loading when the loader.swf is embedded in the html file?
Thanks,
Chromis
I am trying to get my flash file to load xml data correctly, when i load loader.swf in the browser directly my xml is loaded and the movie functions correctly.
However when i embed and load the loader.swf from the index.html file, my xml is not loaded.
I have four files-
/test/index.html
/flash/loader.swf
/flash/house.swf
/flash/xml/data.xml
The xml loading code appears in the house.swf as follows:
Code:
/* Load XML information for info panel */
var dataXML = new XML();
dataXML.ignoreWhite = true;
dataXML.onLoad = function(success) {
if (success){
trace("XML Loaded.");
}
else {
trace("XML Failed to load.");
}
}
dataXML.load("http://www.***.co.uk/flash/xml/data.xml");
Code:
my_mcl.loadClip("http://www.***.co.uk/flash/house.swf",my_mc);
Thanks,
Chromis