dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Key stroke capture

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    25
    Hi guys,

    I have a very minute problem, please help. I am making a movie where one can enter data in the text field provided. The problem I am facing is I want to give a backspace action to the key backspace, that is if I enter something in the flash movie and I want the last to things deleted I can press backspace and delete them.

    I have achieved this but with other keys say for example when I assign <z> to perform this function it does it but as soon as I assign <backspace> it does not work kindly help the code is below

    on (keyPress "<Backspace>") {
    trace (textbox);
    tellTarget ("_root") {
    gotoAndPlay (_currentframe+1);
    }
    }
    Rohit

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Jerusalem, Isreal
    Posts
    254
    well, it involves some unicode stuff, try this:

    on (keyPress "\u0008") {
    trace (textbox);
    tellTarget ("_root") {
    gotoAndPlay (_currentframe+1);
    }
    }
    Rohit

    good luck!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center