johanwilches
asked on
slowing down the positioning of a movieclip
Hello,
I have the following code that when the user rollsover a movieclip it goes up or down...the up selection is good...but when I make the movie slide down and it reaches where it is specified..it stays there...which is good but when I move the mouse hight to select something..it goes really fast back up again. basically I need the movie clip to slide up and down smoothly...when I reach the top I will be able to select things and when I reach the bottom be able to have time to select things...
d = this._ymouse
if(d < 300)d = 300;
if(d > 600)d = 900
arrowY._y += (d - arrowY._y) / delay * 2
menu._y = -150 - ((arrowY._y * 530) / 300)
I have the following code that when the user rollsover a movieclip it goes up or down...the up selection is good...but when I make the movie slide down and it reaches where it is specified..it stays there...which is good but when I move the mouse hight to select something..it goes really fast back up again. basically I need the movie clip to slide up and down smoothly...when I reach the top I will be able to select things and when I reach the bottom be able to have time to select things...
d = this._ymouse
if(d < 300)d = 300;
if(d > 600)d = 900
arrowY._y += (d - arrowY._y) / delay * 2
menu._y = -150 - ((arrowY._y * 530) / 300)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER