Jump to content
Search Community

moving text

kreek test
Moderator Tag

Recommended Posts

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

  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...