Hi,
I’m making a little photo album in flash, where my pictures are being added in a movie clip.
The problem I have is when I add a with and height to my movie clip, I can’t see it anymore. It’s probably a stupid mistake, but I’ve been searching for an solution these past days, but I didn’t find any.
(when I don’t add the width and height, I can see the pictures)
Here’s a little part of the code.
var mc:MovieClip = new MovieClip();
mc.width=300;
mc.height=100;
var plaatsx:Number = 300;
var imageList:XMLList = images.image.thumbnail;
for each (var imageElement:XML in imageList){
trace(imageElement);
var img:ImageLoader = new ImageLoader(this, "assets/images/images/" + imageElement);
img.loadAsset();
img.x = plaatsx + 120;
img.y = 200;
mc.addChild(img);
plaatsx = img.x;
}
trace (mc.height + mc.width);
content.addChild(mc);
}