Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
kidlarge

Delete textArea (transform manager)

Recommended Posts

Hi,

 

Have some serious problems regarding the textArea component in combination with transform manager.

I'm trying to make it possible to delete a textarea by pressing the "delete"-key.

 

TFmanager.allowDelete = true; 

 

Works fine for movieclips but can't get it to work for textareas.

 

Any ideas?

Link to comment
Share on other sites

Yep, that's completely by design because TextArea objects have text that folks typically want to edit which means they might type something and then hit the DELETE or BACKSPACE key to remove that text. If TransformManager deleted the entire TextArea as soon as one of those keys gets hit, that would be really frustrating! "I just mistyped a character and wanted to fix it but then the entire TextArea disappeared!"

 

See the problem?

 

Of course if you want to delete the TextArea, you can manually handle that with your own code. The TransformItem has a deleteObject() method that you can call.

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.
×