Showing the “hand cursor” in controls

This seemed like a challenge to us at first. We were trying to use the CursorManager, but then we hit upon a solution that made more sense and also was easy one.

Flash has an object called Sprite; if the buttonMode of the Sprite has been set to true, then the component acts as a button and displays the hand cursor. You can also use the useHandCursor property to turn that off if you want to.

Code:

<mx:Button label=”With cursor” buttonMode=”true” useHandCursor=”true” click=”click();” />
<mx:Button label=”Without cursor” useHandCursor=”true” click=”click();” />

%d bloggers like this: