# Cool resizing effect

**URL:** <https://forum.kirupa.com/t/cool-resizing-effect/24948>\
**Category:** Uncategorized\
**Created:** [July 7, 2003, 3:36pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948 "2003-07-07T15:36:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabydog](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gabydog](https://forum.kirupa.com/u/gabydog)\
**Post date:** [July 7, 2003, 3:36pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/1 "2003-07-07T15:36:26Z")

</div>

Does anyone know how to do the resizing effect found at this site?

Thanks.

[http://www.svizra.com/](http://www.svizra.com/)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 3:50pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/2 "2003-07-07T15:50:51Z")

</div>

Yes 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 3:52pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/3 "2003-07-07T15:52:43Z")

</div>

Your a funny guy… source my man SOURCE!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 3:53pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/4 "2003-07-07T15:53:18Z")

</div>

mmh there was a link not too long ago - and ilyas you used the same effect for your “Some pictures – Some more pictures” - go ahead, make us cry =) !

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 3:57pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/5 "2003-07-07T15:57:06Z")

</div>

You guys just crack me up, waao!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:00pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/6 "2003-07-07T16:00:11Z")

</div>

I’ll post my sources when I get home tonight :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:06pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/7 "2003-07-07T16:06:05Z")

</div>

I think its just onClipEvent(enterframe) sizing with a bit of easing…

-Aditya

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:13pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/8 "2003-07-07T16:13:09Z")

</div>

You can read this for a start: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=27710](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=27710) 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 8:16pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/9 "2003-07-07T20:16:32Z")

</div>

Here you go 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 11:19am UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/10 "2003-07-08T11:19:37Z")

</div>

Cheers Ilyas.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 8:19pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/11 "2003-07-08T20:19:50Z")

</div>

god…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 8:31pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/12 "2003-07-08T20:31:02Z")

</div>

fluid\_0ne: What is it with your massive amounts of 1 word posts the past week?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2003, 2:46am UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/13 "2003-07-09T02:46:06Z")

</div>

I have my head wrapped around how to resize a MC with actionscript like on the site at [http://www.svizra.com/](http://www.svizra.com/)

I ran across another thread that made it crystal clear and simple with something like this:  
[AS]  
//set variables  
var endWidth = box.\_width;  
var endHeight = box.\_height;  
var speed = 4;  
//create function to easily change variables to resize box  
function resizeTo(w, h) {  
endWidth = w;  
endHeight = h;  
}  
//use the easing equation to resize the box…  
//…whenever the endWidth and endHeight variables change.  
box.onEnterFrame = function() {  
this.\_width += (endWidth-this.\_width)/speed;  
this.\_height += (endHeight-this.\_height)/speed;  
};  
//use buttons to change the width and height.  
box.button1.onPress = function() {  
resizeTo(200, 100);  
};  
box.button2.onPress = function() {  
resizeTo(500, 300);  
};  
box.button3.onPress = function() {  
resizeTo(10, 10);  
};

[/AS]

What I can’t figure out are the buttons that are glued to the box’s corner as it’s scaled. (see the link above for an example of what I mean)

I would love to be enlightened. I can’t imagine this is too crazy, I just can’t figure it out. arg.

Thanks a lot, gang.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2003, 2:14pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/14 "2003-07-09T14:14:05Z")

</div>

Did you check the source?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2003, 3:05pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/15 "2003-07-09T15:05:39Z")

</div>

Hey Ilyas, thanks for the code man! :thumb:  
Ive been wanting dat for a long time  
Going to play with that now… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 3, 2003, 11:40am UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/16 "2003-08-03T11:40:23Z")

</div>

Hi guys - just wondering if anyone managed to figure out how to lock the menu box’s corner.

Like… [http://www.svizra.com/](http://www.svizra.com/)

Thx,

dEVS!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 3, 2003, 1:05pm UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/17 "2003-08-03T13:05:15Z")

</div>

some math, like

```auto
_x = 0-(box._width/2+_width)

```

get it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2003, 6:29am UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/18 "2003-08-22T06:29:47Z")

</div>

By any chance, did anybody figure out how the buttons that are glued to the box’s corner as it’s scaled.

Please help. I’m also trying to figure out and example file will be greatly appreicated. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2003, 9:30am UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/19 "2003-08-22T09:30:40Z")

</div>

I need to check my source, because I was pretty sure it did it :-\

Anyway, all you have to do is to set the position of the clip containing your menu to :  
position of the main clip + \_width of the main clip + a little something to give a little space.

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2003, 11:10am UTC](https://forum.kirupa.com/t/cool-resizing-effect/24948/20 "2003-08-22T11:10:30Z")

</div>

Is this FLA of any help ?

[Next page](https://forum.kirupa.com/t/cool-resizing-effect/24948.md?page=2)
