# Again with the resize border

**URL:** https://forum.kirupa.com/t/again-with-the-resize-border/49993
**Category:** Uncategorized
**Created:** [April 28, 2004, 3:42pm UTC](https://forum.kirupa.com/t/again-with-the-resize-border/49993 "2004-04-28T15:42:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![popbrown](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@popbrown](https://forum.kirupa.com/u/popbrown)
#### Post date: [April 28, 2004, 3:42pm UTC](https://forum.kirupa.com/t/again-with-the-resize-border/49993/1 "2004-04-28T15:42:59Z")

</div>

Hello All,  
I have a question about the resize border, I have it working but when I load it into another swf file the picture gallery shows ghosting when loading. I picked up this code from the forum, but it still has ghosting when shown through another swf. any suggestions?

Thanx in advance

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 += 5;  
if (\_root.containerMC.\_alpha\>90) {  
\_root.containerMC.\_alpha = 100;  
delete this.onEnterFrame;  
}  
}  
};  
};
