A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Help Nedded

  1. #1
    Member
    Join Date
    Dec 2002
    Posts
    36

    Help Nedded

    Hi,

    I have made a virtual QWERTY keyboard in flash which can input text into text fields, I wanted to know does anyone know how to make the delete key action and clear the entire field action work by adding code to a button?

    Below is an example of the code I am using on the normal keys, but I have had no luck on the function keys such as delete etc etc, can anyone help thanks.....

    on(release){
    textfield+="a";
    }

  2. #2
    Senior Member
    Join Date
    Apr 2000
    Location
    Northern Ireland
    Posts
    2,146
    'Backspace' button code as follows:
    Code:
    on(release){
     if (textfield.length > 0) {
      textfield = textfield.substr(0, textfield.length - 1);
     }
    }
    'Clear All' button as follows:
    Code:
    on(release){
     textfield = "";
    }
    ----------
    "Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." TERRY PRATCHETT

  3. #3
    Member
    Join Date
    Dec 2002
    Posts
    36

    Thanks

    Thank You! works just fine

  4. #4
    Junior Member
    Join Date
    Feb 2010
    Posts
    12

    Can you help me do that?

    I've been trying to make a keyboard on flash with buttons that you click on and then you can type words into a text field. I'm just trying to make something simple.
    Only a few words in a text field that were made by a mouse click on a button with the letter on it.

  5. #5
    Junior Member
    Join Date
    Feb 2010
    Posts
    12
    Can you, or some one els please help me make a keyboard like mesioned above? With out the back space??!!

    I've been trying to make a keyboard on flash with buttons that you click on and then you can type words into a text field. I'm just trying to make something simple.
    Only a few words in a text field that were made by a mouse click on a button with the letter on it.

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