georgia
February 20th, 2003, 11:03 AM
I'm trying to work this out myself (tutorial) but, I still need a little help.
I have clip1. On mouseDown, clip1 is supposed to move clip2 down. It does move, but the tutorial was for deceleration and that part doesn't seem to work.:(
Here is the action attached to clip1. Both clips are at _y 20
-------------------------------------------------------------
onClipEvent(load) {
endPosy = 250;
}
onClipEvent(mouseDown) {
currentPosy = _root.clip2._y;
diffPosy = endPosy - currentPosy;
movey = diffPosy/2;
_root.clip2._y = _root.clip2._y + movey;
}
--------------------------------------------------------------
It does move clip2, just not with deceleration
thanks for any help
I have clip1. On mouseDown, clip1 is supposed to move clip2 down. It does move, but the tutorial was for deceleration and that part doesn't seem to work.:(
Here is the action attached to clip1. Both clips are at _y 20
-------------------------------------------------------------
onClipEvent(load) {
endPosy = 250;
}
onClipEvent(mouseDown) {
currentPosy = _root.clip2._y;
diffPosy = endPosy - currentPosy;
movey = diffPosy/2;
_root.clip2._y = _root.clip2._y + movey;
}
--------------------------------------------------------------
It does move clip2, just not with deceleration
thanks for any help