Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-21-2006, 02:25 PM   #1
veiky
Senior Member
 
Join Date: Dec 2005
Location: india
Posts: 204
Default Convert capital letter to small

I have created a input text field with the text tool.
How can I restrict it to accept only small letters? or if user types "A" it should show "a"

Thanks...
veiky is offline   Reply With Quote
Old 11-21-2006, 02:32 PM   #2
foo2
foo to you
 
Join Date: Nov 2006
Location: Germany, Europe
Posts: 33
Send a message via ICQ to foo2 Send a message via Skype™ to foo2
Default

hello="sdfasfsGfd"
trace(hello.toLowerCase())
foo2 is offline   Reply With Quote
Old 11-21-2006, 02:32 PM   #3
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

You could use restrict property of the textField to achieve that...
ActionScript Code:
input_txt.restrict = "a-z";
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some handy web services mmm..pi..3.14.. ActionScript 2.0 154 02-01-2014 02:58 PM
Special HTML chars in htmlText GhostUnclean ActionScript 2.0 7 12-25-2007 05:04 PM
Convert letter characters into dot matrix vj21 ActionScript 2.0 1 11-23-2005 11:53 AM
Input Letter Identifer sam123 Other Flash General Questions 0 11-16-2005 05:48 AM
2 events with small button above a large button blob ActionScript 2.0 8 01-05-2005 05:26 AM


All times are GMT. The time now is 06:19 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.