Recipe 9.14. Hiding the Hand CursorProblemYou want Flash to continue to display the arrow mouse icon instead of the hand icon even when the mouse is moved over a button (or movie clip acting as a button). SolutionSet the useHandCursor property to false for all the movie clips and buttons for which you wish Flash to continue to use the arrow icon. DiscussionThe default behavior for Flash is that when the user moves the mouse over any button instance or any movie clip instance with button event handlers, the cursor changes from the arrow icon to a hand icon. However, it is possible for you to tell Flash to retain the arrow icon throughout by setting the useHandCursor property for the button and movie clip instances. For example, if you want Flash to retain the arrow icon even when the user moves the mouse over a button instance named btSubmit, you can use the following code on a keyframe within the timeline in which the button instance exists: btSubmit.useHandCursor = false; If at a later point you want Flash to use the hand cursor again when the user moves the mouse over objects, you can set the useHandCursor property to true again. |
Tripod >> 3pod Tips & Learning and manuals for educations