Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Best to use a hittest in this situation.

    http://www.kirupa.com/developer/acti...pt/hittest.htm
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    Code:
    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
    Last edited by gani; 01-08-2009 at 05:20 PM.

  • #4
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nevermind...solution found.... an onRelease action was required.... thanks for your help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •