Skip to main content
October 26, 2006
Question

Creating dynamic text field that will accept formatted text.

  • October 26, 2006
  • 1 reply
  • 163 views
Can I use actionscript to dynamically create a text field that will accept formatted text? I want to assemple HTML tags and use the print function to print it as a HTML page.
This topic has been closed for replies.

1 reply

Participating Frequently
October 26, 2006
You can create textfields dynamically with AS using the createTextField() method. If you then set the "html" property to "true" and then use the htmlText property to assign text to the textfield it will process the HTML code contained within the string.

Just remember that Flash supports only a limited number of HTML tags. Tables, Div, Frame, IFrames, etc. are not supported. Neither are <ol> or <ul> only the <li> tag is and it will always use a dot as the bullet.

Tim