Share Posted March 7, 2011 Hi, With textfields the default behavior is to have the move cursor only show up when you hover over the edge of the bounds rect + 10px. Is there a way to have text be 'movable' no matter where you hover over it? I thought about wrapping it in a Sprite but I want to preserve the behavior of the textfield scaling (font size remains visually the same) thanks! Link to comment Share on other sites More sharing options...
Share Posted March 18, 2011 I suppose you could create a custom class that extends Sprite, put your TextField into it, and then override the width and height getters/setters so that they alter the TextField's width/height properties. Kinda like a proxy of sorts. And don't forget to make sure that when you addItem() your Sprite (wrapper), you set the scaleMode to WIDTH_AND_HEIGHT. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now