# Remote inertia control help!

**URL:** <https://forum.kirupa.com/t/remote-inertia-control-help/18050>\
**Category:** Uncategorized\
**Created:** [April 12, 2003, 6:31pm UTC](https://forum.kirupa.com/t/remote-inertia-control-help/18050 "2003-04-12T18:31:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hawk](https://avatars.discourse-cdn.com/v4/letter/h/22d042/32.png) [@Hawk](https://forum.kirupa.com/u/Hawk)\
**Post date:** [April 12, 2003, 6:31pm UTC](https://forum.kirupa.com/t/remote-inertia-control-help/18050/1 "2003-04-12T18:31:23Z")

</div>

well i am still kinda tweaking my minimizable box… and the next step is to have a button to make it move to the bottom of the stage with inertia… zylum gave me the code for inertia.

and i can do the onClipEvent (enterFrame) with the inertia movement, but what i want is to put this on a button so when i press the button, the MC called window with slide to the bottom with inertia…

this is what i have now:  
i have 2 MCs on the main timeline, one called window and one called minimize, the minimize has these actions on it:  
[AS]  
on (release) {  
window.onEnterFrame = function() {  
window.\_y = window.\_y-(window.\_y-385)/4;  
}  
}  
[/AS]  
and thats it…

thx  
hawk

---

<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:** [April 12, 2003, 7:23pm UTC](https://forum.kirupa.com/t/remote-inertia-control-help/18050/2 "2003-04-12T19:23:45Z")

</div>

i got it semi-working… when i press the button it kinda works, you gotta see it, i would post the .fla but its too large… if you think you can help… ill email you the .fla

now i have 2 MCs on the main timeline, still ‘minimize’ and ‘window’, on the window MC i have the following code:  
[AS]  
onClipEvent (enterFrame) {  
\_root.minimize.onRelease = function() {  
\_root.window.\_y = \_root.window.\_y-(\_root.window.\_y-385)/4;  
};  
}  
[/AS]  
the current effect is when i press the button ‘minimize’ the ‘window’ moves down with inertia, but moves once each time… ill upload the .swf in a sec  
plz help!

hawk

---

<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:** [April 12, 2003, 7:25pm UTC](https://forum.kirupa.com/t/remote-inertia-control-help/18050/3 "2003-04-12T19:25:45Z")

</div>

[http://jellomirage.tripod.com/inertia.html](http://jellomirage.tripod.com/inertia.html)

HELP! :stunned:

---

<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:** [April 12, 2003, 8:03pm UTC](https://forum.kirupa.com/t/remote-inertia-control-help/18050/4 "2003-04-12T20:03:54Z")

</div>

reverse your code so the onrelease code is first, then the enter frame… that makes more sense. If you think about it, the way you have it now, it is looking for the onrelease code every single time it goes into another frame.

---

<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:** [April 12, 2003, 8:12pm UTC](https://forum.kirupa.com/t/remote-inertia-control-help/18050/5 "2003-04-12T20:12:19Z")

</div>

genious! ty, im dumb ☹

edit: woohoo it worx!

ty again

_smacks himself and thinks, i gotta learn this shi…stuff!_
