Hawk
April 12th, 2003, 02:31 PM
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:
on (release) {
window.onEnterFrame = function() {
window._y = window._y-(window._y-385)/4;
}
}
and thats it...
thx
hawk
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:
on (release) {
window.onEnterFrame = function() {
window._y = window._y-(window._y-385)/4;
}
}
and thats it...
thx
hawk