Jump to content


Delete textField with TransformManager?

Recommended Posts

Hey and thanks in advance to anybody who can help - I just want the Delete key to work for deleting textFields that have the TransformManager applied to them.


I have hasSelectableText set to false, but the fields still won't delete properly. They have no selectable text in them either. Is there some other setting I've missed? I've also had no luck scaling them - where the TEXT actually scales too - as just scaling the invisible field is of no use to me.


manager4 = new TransformManager({targetObjects:[theWord], allowMultiSelect:true, handleSize:6, lineColor:0xCDD7F5, hasSelectableText:false, paddingForRotation:24, lockScale:true, allowDelete:true, hideCenterHandle:true, autoDeselect:true });

Link to comment
Share on other sites

The easiest solution would be to simply wrap your TextField in a Sprite :)

Link to comment
Share on other sites

thanks Jack - worked perfect. Setting the autosize to "center" was also key to getting the words to center properly in the sprites. The TransformManager has worked wonders for me - thanks again for the sweet script :)

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.