Ultrashock Forums > Flash > Flex
Flex - wordwrap

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
Flex - wordwrap
Old 2008-02-01

I am using textarea and set wordwrap as true.

When user finish his/her entry in this textarea and press submit button,
at that time I want to know text of each line, but not the entire text of textarea.

How i can solve this? Plz help me.

Thanks in advance.
Keep Smilying
postbit arrow 3 comments | 2370 views postbit arrow Reply: with Quote   
Registered User
kaushal_bs is offline
seperator
Posts: 132
2005-06-27
seperator

Ultrashock Member Comments:
Laveklint's Avatar Laveklint Laveklint is offline Laveklint lives in Sweden 4 Creative Assets 2008-02-02 #2 Old  
I´m not a flex-user so I´m not aware about difference between flex and flash...
It sounds a bit weird what you´re looking for.
Can´t you have the user fill in separete textfields and grab the data out of each textfield instead?



maybe you can do something like this..

say your textfield is x number of charcters wide.
then you can grab character 1 to x for your first row
then x+1 to xx for your second row and so on?

Other then that I don´t know...
Reply With Quote  
sentinels sentinels is offline sentinels lives in United States 2008-02-02 #3 Old  
split the string by carriage returns.
ActionScript Code:
  1. var strArr:Array = textfield.text.split('\r');
Reply With Quote  
kaushal_bs kaushal_bs is offline 2008-02-03 #4 Old  
I have tried this also. But what happen when textfield has wordwrap true, when user is typing, and if any word is not fit in a row then it will automatically comes to next line. And this can not be identify even by \r or by \n.
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: