Hello everyone,
I´m working with the resize image gallery, eveything works fine but I have my border mc registration point on the bottom left. I just can not figure out how to position the container mc the right way
here´s the code
function preload(target) {
_root.onEnterFrame = function() {
var t = target.getBytesTotal(), l = target.getBytesLoaded();
per = Math.round((l/t)*100);
if (l == t && target._width>0 && target._height>0) {
var w = target._width+space, h = target._height+space;
resizeMe(w, h);
delete this.onEnterFrame;
} else {
picinfo.text = per;
}
};
}
function resizeMe(w, h) {
conteudo.boder.tween(["_width", "_height"], [w, h], 1, "easeOutSine");
conteudo.images_mc.alphaTo(100, 1, "easeOutSine");
imagesPath.depths_mc._x = conteudo.boder._x+conteudo.boder._width/2+space/2;
imagesPath.depths_mc._y = conteudo.boder._y+conteudo.boder._height/2+space/2;
}
I am not sure if it´s relevant but the complete path to the images is imagesPath.depths_mc.one_mc.img_mc
imagesPath.depths_mc.two_mc.img_mc
imagesPath.depths_mc.three_mc.img_mc
I am loadind the images in 3 diferents mc´s then using swap dephts to exibth the right one
many thanks