I've been working on a project that requires text to be displayed as a HTML Href, this means that the text needs to be under lined and when the mouse goes over the text the hand cursor is shown.
To do this you need to make settings to the Sprite that contains the TextField being displayed. To this Sprite you set:
mySprite.buttonMode = true;
mySprite.childrenMouse = false;
mySprite.useHandCursor = true;
What you are saying here is that the Sprite will act as a button, any children of the Sprite will not override the Mouse settings, and that the cursor will be a Hand cursor for this Sprite. If you don't set childrenMouse = false, you'll find that any TextFields you add to the Sprite will not show the hand cursor as they are overriding the containing Sprite.
Something I found out after looking for a while.
Hope this helps
No comments:
Post a Comment