A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Trying to EMPTY a text field.

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    101
    Hi,

    I'm doing a quick User Name and Password thing.

    I have 3 Scenes:

    pin_enter
    confirmation
    pin_retry

    On pin_enter there are 3 textboxes... ------[pin, pin_02 and username]----------

    Everything works fine with the ActionScript I have written so far, but I have 1 small problem....

    If the two password fields are not identical, the submit button takes the user to a scene: ---- pin_retry ----.

    Here the user must re-enter the password and password confirm in the two given fields.

    The problem is that whatever the user typed in while on the -----pin_enter------ scene is still in the text boxes. I would like to set these text boxes back to NULL or EMPTY. I tried Set Variable on frame 1........ but can't seem to get anything to empty the text boxes.

    Can anyone suggest anything?


    Thanks!!!!!

  2. #2
    Junior Member
    Join Date
    Apr 2002
    Posts
    20
    Not too sure, but wouldn't renaming the p/w bozes on the second page sort this out?

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    101
    yeah, re-nameing them would work, but the Security service on the server will only accept two Name/Value pairs for the text boxes. Therefore I can't use: pin01, pin02, pin03, pin04... I can only use the first two.

    Thanks anyway though!!!

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    Allentown PA
    Posts
    350
    if the textboxes are referanced by instance name then you need to have this in frame 1 of the pin_retry scene:

    pin.text = ""

    if pin in the variable then have:

    pin = ""

    I've been doing A LOT of text stuff lately see: http://members.aol.com/_ht_a/freqfest/formv3/index.htm

    Frequent-C
    http://www.Freq-Fest.com

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