Why not hand see the cursor up even after I put it to true?

I have a text I want to move the cursor to hand on the mouse cursor. The code is below:

import flash.display.Sprite;

var testText:Text = new text;
testText.text = "Hello";
testText.selectable = false;

testText.addEventListener (MouseEvent.MOUSE_OVER,
{function(Event:MouseEvent):void}
event.currentTarget.buttonMode = true;
event.currentTarget.useHandCursor = true;
});

addChild (testText);

But the hand cursor is not displayed. Someone knows why?

Discovered how A. Add the line:

event.currentTarget.mouseChildren = false;

Tags: Flex

Similar Questions

Maybe you are looking for