dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Can I Keep Input Text To Upercase?

  1. #1
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227

    Can I Keep Input Text To Upercase?

    is there anyway i can set an input box to stay upercase?

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    Hi,

    try this where myText_txt is the instance name of the textbox

    code:

    myText_txt.onChanged = function() {
    myText_txt.text = myText_txt.text.toUpperCase();
    }


  3. #3
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    so my text box is called "login"

    my code on a frame should be:




    Code:
    login.onChanged = function () { login.text = login.text.toUpperCase();};
    dont work!

  4. #4
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    im using flash 5 by the way incase that helps!

  5. #5
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    ah, that would work in MX only...

    in flash 5 I think you could create a movie clip and attach these actions to it,

    code:

    onClipEvent(keyDown) {
    _parent.login = _parent.login.toUpperCase();
    }


  6. #6
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    ah ncie one amte! worked a treat!


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