Styling Html TextField Bullet Points
June 18th, 2009 • ActionScript, Flash
If you ever needed to style the bullet points in a Html TextField in Flash you have noticed that this isn’t supported. It gets even worse if the bullet point in the font you’re using isn’t nice at all and you want to take another fonts bullet point.
But with a simple workaround you can change the font face, size and color of the bullet points:
And don’t forget to embed the bullet point, it’s character U+2022
Update 25.01.2010
Added an indent property to easily set the left margin of the list. For using other symbols than the bullet, you have to manipulate your font and embed the manipulated character.
12 Responses (Add Your Comment)
-
-
Cool, had many problems with bullets and TextField before. How would that work when the line is slightly longer? Would it indent the second (wrapped) line?
-
Daniel November 28, 2009at 1:03 pm
hi everyone where do i get the fonts that are in the class so i can embed them?
Thanks
Daniel
-
Hi everyone..
The script works fine.. but does anyone know how to make a square instead of a bullet? and how to change the indentation of the list..
I tried to put the unicode U+25A0 for the square but that didnt help..
Hope someone can help me out here.. Thanks!
-
Hey Martin,
Thanks a lot… An example with font and the stylesheet for the indentation would be great!
-
Hey Martin, nice and very helpfull trick ;-)
It seems only that when the list text goes to two lines the ‘non printing char’ leaves a space.
http://www.nyls.nl/grabs/e565a24a8e2b59011e032c19541cc5d0.png
You have had any problem with that ?
Yeah, comes to the rescue :)