# WOOT! Okay, just need a little more help, and ill be done! I hope you like it!

**URL:** https://forum.kirupa.com/t/woot-okay-just-need-a-little-more-help-and-ill-be-done-i-hope-you-like-it/41441
**Category:** flash
**Created:** [January 29, 2004, 1:27am UTC](https://forum.kirupa.com/t/woot-okay-just-need-a-little-more-help-and-ill-be-done-i-hope-you-like-it/41441 "2004-01-29T01:27:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gragland](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gragland/32/422_2.png) [@gragland](https://forum.kirupa.com/u/gragland)
#### Post date: [January 29, 2004, 1:27am UTC](https://forum.kirupa.com/t/woot-okay-just-need-a-little-more-help-and-ill-be-done-i-hope-you-like-it/41441/1 "2004-01-29T01:27:45Z")

</div>

I am trying to redo this NAV I made (which i did with lots of tweening)----\> [http://s91931107.onlinehome.us/nav/](http://s91931107.onlinehome.us/nav/), but with just ActionScript this time.

Okay, so I have a button that when clicked sets the variable xmax and ymax to 300. Then I have an MC (box1) with this code on it:

onClipEvent (load) {  
this.xmax = 100;  
this.ymax = 100;  
}  
onClipEvent (enterFrame) {  
inertia = .8;  
k = 0.05;  
x = this.xmax-this.\_xscale;  
y = this.ymax-this.\_yscale;  
xp = xp_inertia+x_k;  
yp = yp_inertia+y_k;  
this.\_xscale += xp;  
this.\_yscale += yp;  
}

This results in a cool elastic effect when the mc (which is a simple orange square) springs open. NOW HERE’S THE TRICKY PART, I have 3 other MC’s which I want to remain the same distcance from the edge of the springing open box at all times like in: [http://s91931107.onlinehome.us/nav/](http://s91931107.onlinehome.us/nav/). So anybody know how i could accomplish this? I’m assuming I got to make the other 3 mc’s analyze parts of the above code, but I’m not sure exatly what to do. I tried copying the above code to the other mc’s, and changing \_xscale to \_x and “this” to box1, but that made the boxes fly off the screen when box1 enlarged. SO, anyone know?

|||| AND lastly, making the other boxes bounce around a bit due to being pushed by the enlarging box would look cool, but that may be too difficult.
