A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: input text and variables

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Posts
    20

    input text and variables

    I have two input text fields - one for first name and one for surname.

    When user hits a submit button, I want both names to appear together in a third box in the form of an email address ie:

    firstname.surname@company.com

    It sounds so basic, but I've spent hours on it already and no success. Please help...
    thanks

  2. #2
    Senior Member
    Join Date
    Mar 2004
    Posts
    203
    hi

    give each input box an instance name. Say name, surname.
    Third box would be a dynamic boxc with a var name! say email.

    on the submit button place this code:

    on(release)
    {
    _root.email=_root.name+"."+_root.surname;
    }

    thats it I guess
    Cheers, KGTRIP

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Posts
    20
    many thanks - had the quotes in all the wrong places.

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