### mouseOverButton

Syntax: | `the mouseOverButton of sprite` `whichFlashSprite`
Type: | Sprite property
Description: | This property indicates whether the mouse pointer is over a button in a Flash movie sprite specified by the `whichFlashSprite` parameter. The `mouseOverButton` property can have these values:

| `TRUE` The mouse pointer is over a button in the Flash movie sprite.
| `FALSE` The mouse pointer is outside the bounds of the sprite or the mouse pointer is within the bounds of the sprite but over a non-button object (such as the background).

| The `mouseOverButton of sprite` property can be tested but not set.
Example: | This frame script checks to see if the mouse pointer is over a navigation button in the Flash movie in sprite 3. If the mouse pointer is over the button, the script updates a text field with an appropriate message; if not, the script clears the message.

    on enterFrame
    	case the mouseOverButton of sprite 3 of
    		TRUE:
    			set the text of member "Message Line" = "Click here to go to the next page."
    		FALSE:
    			set the text of member "Message Line" = " "
    	end case
    	updatestage
    end

Previous | Next