A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to create a clear button to remove the text on the text box

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    11

    How to create a clear button to remove the text on the text box

    Hey, im tryin to create a clear button
    whihc is:
    clear_btn.onRelease = function () {
    _root.sender.txtclear();
    };

    So that it would clear date enter in that text box. But nothin seem to happen with the button when i run it.

    Does any1 know a way on how i would create a clear button?

  2. #2
    Flash programmer
    Join Date
    Jul 2005
    Location
    Sweden
    Posts
    48
    This code works for me, it clears a textbox named txtSomething:
    Code:
    on(release)
    {
    	_root.txtSomething.text = "";
    }
    Good luck
    Have a nice day - The Wazaa
    My portfolio

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