So I am loading images from a xml into a swf, then loading that swf into another swf. Everything works but it won't let me move the position of the swf. Here is my code for the swf with the images:
PHP Code:
var mList:Object = new Object();
var mLoad:MovieClipLoader = new MovieClipLoader();
mLoad.addListener(mList);
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
lastNode = this.lastChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
AllImages();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("houseTNs.xml");
//Preloader
this.onEnterFrame = function() {
filesize = total.getBytesTotal();
loaded = total.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
}
}
//Creating movie clips for images
function AllImages() {
for(i=0; i<total; i++){
var m = _root.createEmptyMovieClip("picture"+i, i);
mLoad.loadClip(image[i], m);
m._x = 0;
m._y = i*120;
}
}
And here is the swf that is loading that swf:
PHP Code:
_root.createEmptyMovieClip("container", 3);
loadMovie("LeftNavGalleryStrip.swf", container);
container._x = 500;
container._y = 500;
I can type in any number for the "container._x" and it doesnt change anything Help!
Thanks!