dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: change edit box to lower case

  1. #1
    Senior Member creekmonkey's Avatar
    Join Date
    Jul 2006
    Posts
    121

    change edit box to lower case

    Is it possible to change the contents of an edit box
    from upper case to lowercase
    dynamically?

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Sure... strings have functions like:
    toLowerCase()
    toUpperCase()

    example:
    editbox.text = editbox.text.toUppercase();

  3. #3
    Member
    Join Date
    Jan 2006
    Location
    Florida
    Posts
    51
    i have try that but it does not like it



    ReciverEmail.onChanged = function() {

    ReciverEmail = ReciverEmail.toLowerCase();
    error_ReciverEmail.text = ReciverEmail;
    _root.validateemail(ReciverEmail.text,error_Recive rEmail);
    _root.objVars.ReciverEmail = ReciverEmail.text;
    };

    ReciverEmail2.onChanged = function() {
    ReciverEmail2 = ReciverEmail2.toLowerCase();
    conf_ReciverEmail.text = "";
    _root.checkMail(ReciverEmail2.text,conf_ReciverEma il);
    _root.objVars.ReciverEmail2 = ReciverEmail2.text;
    };
    Moises Zaragoza

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