Jump to content
Search Community

Delete [SOLVED]

evan test
Moderator Tag

Recommended Posts

--------------------------------Update Delete DOES work, but for me it works only on "ctrl-delete"--wierd any reason why? :?:

 

As with my last question, It's simple.

 

The AS3 demo seems to work sporadicaly -with delete enabled, it works only after the text box is slected.

 

I tried it myself:

Here is some sample code with delete enabled(using delete key)

 

var manager:TransformManager = new TransformManager({targetObjects:myTargets

//this works

,bounds:new Rectangle(0, 0, 550, 365)

//this works

,forceSelectionToFront:true

//this didn't take

,allowDelete:true}

 

);

 

 

Any sugestions?

Link to comment
Share on other sites

Are you just testing it in the authoring environment? Or are you testing it in a browser? Keep in mind that if you want to test that kind of stuff in the authoring environment (test movie), you need to disable keyboard shortcuts. People make that mistake all the time. If you don't do that, Flash intercepts the special keys (like DELETE).

Link to comment
Share on other sites

Glad to hear it's workin' for you.

 

As far as deleting TextFields, that's a tricky situation because the user must be able to use their BACKSPACE/DELETE key to interact with the text, so how would you know, for example, if when they hit the DELETE key that they wanted to delete the entire TextField as opposed to just a character inside the TextField? In my opinion, you'd need to create a separate button that the user would click to remove the TextField altogether.

Link to comment
Share on other sites

  • 2 weeks later...

Is there an easy way to change the keyboard asisgnment of delete.

 

Namely I would like to set "delete" to delete text only using backspace as backspace.

 

I would also like to disable "backspace" as a delete with shapes and gifs.

Link to comment
Share on other sites

It's easy to disable TransformManager from handling DELETE/BACKSPACE stuff - just set the allowDelete property to false. Then you can handle all that stuff manually. I'm not sure you can disable the DELETE key inside TextFields - I've never tried that. Seems like it'd be really frustrating for users though. You sure you want to do that?

Link to comment
Share on other sites

The reason why I wanted to know about this is -I though that if I dissabled delete with textboxes I could enable delete to remove the whole box -rather than backspace over text.

 

If I created a button to remove a text box -would it remove the last one I added or delete selected text boxes.

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