# Resizing gallery issue

**URL:** <https://forum.kirupa.com/t/resizing-gallery-issue/116204>\
**Category:** Uncategorized\
**Created:** [July 15, 2004, 2:36pm UTC](https://forum.kirupa.com/t/resizing-gallery-issue/116204 "2004-07-15T14:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielthelion](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@danielthelion](https://forum.kirupa.com/u/danielthelion)\
**Post date:** [July 15, 2004, 2:36pm UTC](https://forum.kirupa.com/t/resizing-gallery-issue/116204/1 "2004-07-15T14:36:55Z")

</div>

hey guys, could you all check out [www.creativejuggernauts.com](http://www.creativejuggernauts.com)  
and go to the print section and then check out the print pieces. for some reason my resizing gallery movie is doing some weird stuff and i cant figure out how to fix it. my actionscript goes like this :

stop();

spacing = 20;  
galleryMC.\_alpha = 0;

MovieClip.prototype.loadPic = function(pic) {  
\_root.emptyMC.galleryMC.\_alpha = 0;  
this.loadMovie(pic);  
\_root.onEnterFrame = function() {  
var t = galleryMC.getBytesTotal(), l = galleryMC.getBytesLoaded();  
if (t != 0 && Math.round(l/t) == 1 && galleryMC.\_width != 0) {  
var w = galleryMC.\_width+spacing, h = galleryMC.\_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.emptyMC.galleryMC.\_x = this.\_x-this.\_width/2+spacing/2;  
\_root.emptyMC.galleryMC.\_y = this.\_y-this.\_height/2+spacing/2;  
\_root.emptyMC.galleryMC.\_alpha += 9;  
if (\_root.container.galleryMC.\_alpha\>90) {  
\_root.emptyMC.galleryMC.\_alpha = 100;  
delete this.onEnterFrame;  
}  
}  
};  
};
