# Scotty: help (resize border)

**URL:** <https://forum.kirupa.com/t/scotty-help-resize-border/119993>\
**Category:** Uncategorized\
**Created:** [August 19, 2004, 6:40pm UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993 "2004-08-19T18:40:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [August 19, 2004, 6:40pm UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/1 "2004-08-19T18:40:28Z")

</div>

i finaly have time to build my own website and wanted to use you script with a few extra editions… but i’m stuk ☹ maybe you have time to help me?

basicly what im trying to get is that all my objects (menu, topnav, main, border, picinfo and next and previous) have to shape with my resize border but have to stay in the position i give um… (zie \*.zip)

this threat shows what im talking about… [http://www.kirupaforum.com/forums/showpost.php?p=493526&postcount=119](http://www.kirupaforum.com/forums/showpost.php?p=493526&postcount=119)

and my trouble is i want to make the border and containerMC fixed… (i got that already done) but it looks like the script and moving parts are all link on the center point of de border or containerMC… (am i right?)

MovieClip.prototype.resizeMe = function(w, h, pic) {  
var speed = 3;  
this.onEnterFrame = function() {  
this.\_width += (w-this.\_width)/speed;  
this.\_height += (h-this.\_height)/speed;

[COLOR=Red]\*\* // navigation pos\_  
nav.\_x = Math.round(this.\_x-this.\_width/2);  
nav.\_y = Math.round(this.\_y+this.\_height/2+spacing/2);\*\*[/COLOR]

**[COLOR=Red] // next & previous pos\_  
prevb.\_x = nav.\_x-1;  
nextb.\_x = nav.\_x+this.\_width+1;  
nextb.\_y = prevb.\_y=this.\_y-this.\_height/2;[/COLOR]**

[COLOR=Red]\*\* //picture information pos\_  
picinfo.\_y = nextb.\_y-1;  
picinfo.info.text = tArray[pic];  
picinfo.\_x = border.\_x-picinfo.\_width/2;\*\*[/COLOR]

```
	if (Math.abs(this._width-w)&lt;1 && Math.abs(this._height-h)&lt;1) {
		this._width = w;
		this._height = h;
		containerMC._x = this._x-this._width/2+spacing/2;
		containerMC._y = this._y-this._height/2+spacing/2;
		containerMC._alpha = 100;
		delete this.onEnterFrame;
	}
};

```

};

im realy stuck… and im dreaming actionscript code right now… nightmares ☹

---

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [August 20, 2004, 6:40am UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/2 "2004-08-20T06:40:02Z")

</div>

anyone?

check picture maybe that explains what im after… 👽

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [August 20, 2004, 7:28am UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/3 "2004-08-20T07:28:43Z")

</div>

Yep, you’re right about the registrationpoint…pur it top left.  
If you don’t find/get the answer, I’ll have a look later today, gotta run now:)

scotty(-:

---

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [August 21, 2004, 8:02am UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/4 "2004-08-21T08:02:09Z")

</div>

??

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [August 23, 2004, 7:59am UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/5 "2004-08-23T07:59:22Z")

</div>

Sorry for the delay, like this?

scotty:love:

---

<div class="post-metadata">

**Author:** ![jSite](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jSite](https://forum.kirupa.com/u/jSite)\
**Post date:** [August 23, 2004, 2:28pm UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/6 "2004-08-23T14:28:16Z")

</div>

How is that title loaded?

---

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [August 23, 2004, 3:03pm UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/7 "2004-08-23T15:03:20Z")

</div>

> [@scotty](#):
>
> Sorry for the delay, like this?
> 
> scotty:love:

whoohooo 😛 he remeberted 😛 thx alot man 😛 i have’tn checkedout the file… i’ll let you know later… BTW are you dutch?

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [August 24, 2004, 8:39am UTC](https://forum.kirupa.com/t/scotty-help-resize-border/119993/8 "2004-08-24T08:39:44Z")

</div>

[dutch]:lol: wat dacht je?:lol:[/dutch]  
yep;)

scotty:love:
