A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: obligatory fields!!!

  1. #1
    Senior Member
    Join Date
    Feb 2002
    Posts
    104
    hi everyone,

    i have a form in frame 4 that have 5 text imput fields,
    i want all of them to be obligatory(*),
    if
    the user fills out the whole form I want 2 acctions to be executed,
    else
    show a message.

    the "else" part is done, but i would like some script after de "if part"

    lets imagine that the 5 variables are called:
    baba
    bebe
    bibi
    bobo
    bubu


    on (release, keyPress "<Enter>") {
    if (baba diferent to nothing) and {bebe diferent to nothing) and (bibi diferent to nothing) and so on
    loadVariablesNum("reporte.php", 0, "POST");
    gotoAndStop(2);
    } else {
    alerta = "campos obligatorios!";
    }
    }

    the "diferent to nothing" part is where mi ignorance touches the sky

    i hope someone understands me

    bye
    tulex








  2. #2
    Senior Member
    Join Date
    Feb 2002
    Posts
    104

    done

    this is me answering my own question:

    if (playa.length>=3 and tamano.length>0 and tiempo.length>0 and condiciones.length>0 and message.length>0) {

    kisses

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