A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: validate text

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

    validate text

    How can i a validate a text box, so that if the (instancename.txt = 0) { then it would = to false;
    else ; true

    So what im triyn to do is validate the text box, so that it has some text or values in it otherwise an error would show up, if no tedxt is enter in the txt box

  2. #2
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    if(instancename.textFieldInstancename.text == ""){
    // there is nothing in it..
    }
    My letters on the F1 key have faded, how are yours today?

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