...

View Full Version : onrollover fires once



gani
01-08-2009, 12:12 PM
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

gani
01-08-2009, 02:31 PM
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

gani
01-08-2009, 07:27 PM
nevermind...solution found.... an onRelease action was required.... thanks for your help:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum