theDeSilva.com Andrew de Silva

Creating Hand Cursor for Flex Component

April 6th, 2009 · No Comments · Flex

In order to change the mouse cursor to a hand cursor when a mouse over a particular component in Flex Component you will need to set useHandCursor = true , however if you set this to true you will not be able to get the hand cursor unless you set another two properties on the Flex component , buttonMode = true and mouseChildren = false.

Here’s an example

1
2
3
4
var label:Label = new Label();
label.buttonMode = true;
label.useHandCursor = true;
label.mouseChildren = false;

Once you set all three property of the component you will have the hand cursor when the mouse moves over the flex component.

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Reddit
  • Technorati
  • Facebook
  • Google Bookmarks
  • LinkedIn

Tags: ···