dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] invalidate textfield?

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    17

    [F8] invalidate textfield?

    Hello
    I have no idea how to do this in AS2:
    I have four text entry fields, txt1, txt2, txt3 and txt4.
    To operate with them I can only combine (txt1 and txt2) or (text3 and text4), but not mixing for example txt1 and txt4.
    How can invalidate txt3 and 4 if the user introduced a number in text1?
    any suggestions?
    Thank you in advance

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    btn0.onPress = function(){
    if (txt1.text != "" && text2.text != "" ){
    txt3.text = "";
    txt4.text = "";
    out0.text = txt1.text += txt2.text;
    }
    }

    btn1.onPress = function(){
    if (txt3.text != "" && text4.text != "" ){
    txt1.text = "";
    txt2.text = "";
    out1.text = txt3.text += txt4.text;
    }
    }
    ~calmchess~

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    17
    Thank you so much, calmchess.

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