Create an Account
username: password:
 
  MemeStreams Logo

Preventing line feeds in a TextArea control in Flex at Flex Examples

search

Lost
Picture of Lost
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Lost's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
Preventing line feeds in a TextArea control in Flex at Flex Examples
Topic: Technology 4:47 am EST, Nov 17, 2008

The following example shows how you can prevent a user from pressing Enter in a Flex TextArea control by listening for the textInput event and checking the TextEvent object’s text property for a newline character (”\n”).

Full code after the jump.

Its dumb you have to code this, but ok.

Preventing line feeds in a TextArea control in Flex at Flex Examples



 
 
Powered By Industrial Memetics
RSS2.0