A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Is there a better way? checking user input to textField

  1. #1
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320

    Is there a better way? checking user input to textField

    Surely there must be a better way of checking wether the user has exceeded the amount of chars typed into the textField.

    code:

    mc1.onEnterFrame = function(){
    // Display amount of characters being typed in the textField
    charField.text = msgField.length;
    }if(charField.text>="255"){
    errorTxt.text="Character limit has been reached";

    }

    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Why don't you limit it to start with? Sounds familiar? (actionscripts.org)

  3. #3
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    Yes oldnewbie i find cross forum posting gets quicker results
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    And the good part about it, is that you can allways pretend in the other forum, that you may have solved the problem yourself, when it may have been answered or at least a solution hinted in the first forum...

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