# Foto album

**URL:** <https://forum.kirupa.com/t/foto-album/124180>\
**Category:** Uncategorized\
**Created:** [September 30, 2004, 4:55pm UTC](https://forum.kirupa.com/t/foto-album/124180 "2004-09-30T16:55:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefaan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Stefaan](https://forum.kirupa.com/u/Stefaan)\
**Post date:** [September 30, 2004, 4:55pm UTC](https://forum.kirupa.com/t/foto-album/124180/1 "2004-09-30T16:55:02Z")

</div>

Can someone help me with this.  
i know there were a several threads in the past but no one worked out for me.  
I made a site [www.gemeenteschoollatem.be/mainlatem.html](http://www.gemeenteschoollatem.be/mainlatem.html) and there under “Foto album” then “Bosklas” when you select on of the buttons for example “Busreis” and i push on one of the pictures sometimes all goes well but sometimes it goes wrong and the picture is placed in a small square, you will see.

My code is:

spacing = 10;  
containerMC.\_alpha = 0;  
MovieClip.prototype.loadPic = function(pic){  
\_root.containerMC.\_alpha = 0;  
this.loadMovie(pic);  
\_root.onEnterFrame = function(){  
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();  
if (t != 0 && Math.round(l/t) == 1 && containerMC.\_width !=0){  
var w = containerMC.\_width + spacing, h = containerMC.\_height + spacing;  
border.resizeMe(w, h);  
delete \_root.onEnterFrame;  
}  
};  
};  
MovieClip.prototype.resizeMe = function(w, h){  
var speed = 3;  
this.onEnterFrame = function(){  
this.\_width += (w - this.\_width)/speed;  
this.\_height += (h - this.\_height)/speed;  
if( Math.abs(this.\_width-w)\<1){  
this.\_width = w;  
this.\_height = h;  
\_root.containerMC.\_x = this.\_x - this.\_width/2 + spacing/2;  
\_root.containerMC.\_y = this.\_y - this.\_height/2 + spacing/2;  
\_root.containerMC.\_alpha = 100;  
delete this.onEnterFrame;  
}  
}  
};

and the code for the little pictures is:

on(release){  
containerMC.loadPic(“latem/fotoalbum/Bosklas/bosklas01.jpg”);  
}

Thanks!!
