Connecting Tech Pros Worldwide Help | Site Map

Get text from text area

Newbie
 
Join Date: Apr 2008
Posts: 27
#1: Sep 24 '08
Hi All,
I am using an instance of TextArea. When I press an enter key while entering the text in that text area I am not able to receive the whole text by using the method

var str1:String = textarea_txt.text;

I sthere any issue with enter key?

Please help me out.
Thanks for any help.
Familiar Sight
 
Join Date: Sep 2007
Posts: 207
#2: Sep 24 '08

re: Get text from text area


No there is nothing wrong with the enter key.
The only problem is that some keys don't respond to event listeners in flash compiler.

BUT if you open the SWF file in a browser like IE or Mozila it will work.

Del key has the same issue
Newbie
 
Join Date: Apr 2008
Posts: 27
#3: Sep 25 '08

re: Get text from text area


Thanks for your reply

Actually the listener is getting fired only the problem is in that listener when i try to trace the text inside that textbox it does not even gives the trace alert.

what can be the solution?
Familiar Sight
 
Join Date: Sep 2007
Posts: 207
#4: Sep 25 '08

re: Get text from text area


Are you sure the listener function is getting fired? because as far as I know even if you trace an empty string the trace window will appear.

Try to test your SWF in a browser. If it doesn't solve the problem then show the script, maybe I can help you fix it
Reply