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();” />

Advertisements

Initiate your idea here...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s