printing variables

  • futi
  • Born
  • Born
  • futi
  • Posts: 2

Post 3+ Months Ago

in actionscript, i have variables that contains html content :
$var = "<html><head></head><body><font color='#ff0000'>ACTIONSCRIPT</font></body></html>"

and i want to print them to screen.
what are the ways of this, except textarea?
thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

do you mean that you want flash to render the html? or do you want to display the string contents of the variable exactly as they appear in the string?

If you want to display the string you need a dynamic text field with an instance name then use this code:

Code: [ Select ]
textFieldInstanceName.text = variableName;

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.