Get text from text area

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prajaktaj
    New Member
    • Apr 2008
    • 34

    Get text from text area

    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.te xt;

    I sthere any issue with enter key?

    Please help me out.
    Thanks for any help.
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    #2
    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

    Comment

    • Prajaktaj
      New Member
      • Apr 2008
      • 34

      #3
      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?

      Comment

      • bnashenas1984
        Contributor
        • Sep 2007
        • 257

        #4
        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

        Comment

        Working...