typography and dynamic htmlText text formatting

  • torbjorn
  • Novice
  • Novice
  • User avatar
  • Posts: 23

Post 3+ Months Ago

Hey--
I am trying to use special characters in a dynamic text block. I have a dynamic text block on the main stage called "myText". I have actionscript that says:
myText.htmlText= "& : — *";
this returns an ampersand, a colon, space, and a star. I am trying to print an em dash (a long dash, —)
The special characters only seem to show up if you use ampersand-pound- followed by two numbers only.
Does anyone know if Flash dynamic htmlText does not like special character code with more than two numbers, and/or is there a workaround?
thanks
t
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Natal
  • Beginner
  • Beginner
  • Natal
  • Posts: 49
  • Loc: Transylvania

Post 3+ Months Ago

I have tried your code and it works

Code: [ Select ]
myText.text = "& : — *";
myText.htmlText = "& : — *";
  1. myText.text = "& : — *";
  2. myText.htmlText = "& : — *";


both of them prints this:
& : — *

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 13 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.