I'm trying to load XML from an movieclip instance, but then lose the path to that instance.
Here's what i've coded so far. This is not the full code, it's just an example.
PHP Code:
// When MovieClip is loaded...
onClipEvent(load) {
// Loop 5 Times
for (var i:Number = 0; i < 5; i++) {
// Create Copy of map (map0, map1, map2...)
map.duplicateMovieClip("map"+i, this.getNextHighestDepth());
// On every frame of map# do...
this["map"+i].onEnterFrame = function() {
// Load XML placemarks.xml
var my_xml = new XML();
my_xml.onLoad = function (){
// Load XML into map#.text
// Need to find map# from here.
}
my_xml.load("placemarks.xml");
}
}
}
I lose "map#i" inside the "my_xml.onLoad" function.
Your help would be really appreciated.
Thanks a lot
Powi