View Full Version : onrollover fires once
I have a movieclip and i put an onRollOver call on it. The problem is the onrollover fires only once when the ouse is on top of the movieclip. In flash, how can i do something equivalent to the onmousemove in javascript?
gnomeontherun
01-08-2009, 12:22 PM
Best to use a hittest in this situation.
http://www.kirupa.com/developer/actionscript/hittest.htm
hmm...interesting .... but with the hittest function..... will the function be called at every little pixel movement of the mouse?
update: ...found a better solution
button.onMouseMove = function ()
but now i have this problem ...i want the cursor to turn to a hand when the mouse is over the movieclip... but the hand never appears
button.onMouseMove = function ()
{
if(rov=='hand')
{
button.buttonMode = true;
button.useHandCursor = true;
ExternalInterface.call('alert', button.useHandCursor);
}
else
{
button.useHandCursor = false;
}
}
see example here http://www.skenglish.sk/deleteme/example.html
nevermind...solution found.... an onRelease action was required.... thanks for your help:thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.