Jump to content
GreenSock

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

Delete an Item on stage without <Backspace> key [SOLVED]

Recommended Posts

Hi, Currently if i have a text field on screen to keep it stuff and when i press key, it kinda delete away the whole text field.

 

Is there anyway to go about it just to detect the key only for remove of item?

 

 

pls advise.

 

thanks

chup

Link to comment
Share on other sites

Which version are you using? AS2 or AS3?

Link to comment
Share on other sites

Yeah, in the AS2 version, I'd recommend setting allowDelete to false so that you can manage it for yourself. Then you can set up a listener for the "deleteKeyDown" event and in your handler check to see if the target is a TextField or not (or however you want to set up your logic).

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