I´m having a problem with loading in different swf files into the stage. If I use a empty movieclip (holder) nothing shows up but when I set the width and height of the holder_mc the swf files show up but are zoomed in for some reason. Please help…
Here is my code.
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var whoIsOn:Number;
x.onLoad = function() {
var swf:Array = this.firstChild.childNodes;
for(i=0;i<swf.length;i++) {
urls.push(swf*.attributes.url);
captions.push(swf*.attributes.caption);
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
whoIsOn = 0;
}
x.load("show.xml");
previous.onRelease = function() {
if(whoIsOn > 0) {
whoIsOn--;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
}
}
next.onRelease = function() {
if(whoIsOn < urls.length-1) {
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
}
}