A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: input field doesn't work?

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    326

    input field doesn't work?

    I've got an input text field with a variable named "waarde". And a button which traces this variable:

    Code:
    knopje.onRelease = function() {
    	trace(waarde);
    };
    But when I enter "This is a test" and click the button this is traced:

    Code:
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="arial" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">This is a test</FONT></P></TEXTFORMAT>
    I first though, maybe it's the render as html option, but that makes no difference. Why can't I get just "This is a test"

  2. #2
    reMember
    Join Date
    May 2001
    Location
    Boston, Massachusetts, USA
    Posts
    128
    I'm having the same problem and I've looked through the other threads to hopefully find a clue. I thought that the solution was:

    Code:
    trace(waarde.text);
    But then I get undefined as the result. I'm sure that this is an easy thing that we are just missing. I haven't been using Flash in a few years and have just gotten back into it and I don't remember this being an issue in the past.
    1 post closer to a meeeeeellion......

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Instead of assigning a variable and tracing the variable, assign a instance name and trace the text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center