A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: external text as html not working...

  1. #1
    Member
    Join Date
    Jun 2005
    Location
    dallas, tx
    Posts
    54

    external text as html not working...

    i'm not sure what i'm doing wrong, but i have a dynamic text field that loads external html text.

    my problem is that when i use code like
    Code:
    myTextBox.text = variableText;
    the text isn't rendered as html.
    but when i assign a variable to the text box and set that to point to the variable text, it works fine.

    what am i missing here?

  2. #2
    Senior Member
    Join Date
    Jul 2005
    Posts
    165
    Code:
    myTextBox.htmlText = variableText;
    Your'e refering to the wrong property of the textBox, should be htmlText and not text.
    Last edited by Atarsh; 10-23-2005 at 11:58 AM.

  3. #3
    Member
    Join Date
    Jun 2005
    Location
    dallas, tx
    Posts
    54
    cool.

    i didn't know there was a separate property to use html text. thanks.

  4. #4
    Senior Member
    Join Date
    Jul 2005
    Posts
    165
    Your'e welcome - that's what this forum is for, to learn new things.

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