Flash text from XML
- Started
- Last post
- 6 Responses
- emmaopeel
I am pulling some text from an xml file, some of which has html styling to it (I need to italicize some titles, etc.). I can achieve this by using a "_sans" or system default font, but I can't get it to work with an embedded font.
Is this because I also need to embed the italicized version of the font? (i.e. when I do embed the font, or use a textformat options, I read all the text except the italicized) And if so, how do I do it?
thank you, thank you, in advance if you have an answer to my dilemma!
- unfittoprint0
only if the font has the italic 'version' incçude in its family.
the best way is to make a fontsymbol > upper right corner on your library panel.
choose your font, give your symbol a name and check the both bold/italic box.
right click the font symbol and in the linkage identifier check the export on first frame/export for actionscript.
You can use this font from your font list. It should have you chosen symbol name follwoed by an *.
- nRIK0
You can use this font from your font list. It should have you chosen symbol name follwoed by an *.
unfittoprint
(Oct 3 05, 16:12)awesome too when the cliendt decides to go for a different font.. :) dont ahve to go thru all your textfields and change it manually
- unfittoprint0
even better:
an external swf library with your font symbols will serve your entire site.
[use the import feature in the linkage identifier for the correct shared library path]
one font symbol's change will reflect on the entire site.
- Beech0
cool! i've been trying to do this but couldn't work it out. so ... when you do this do you still have to say my_txt.embedFonts = true;
Everytime I did this when trying to import xml stlyled by css it stopped the text from showing!
Thanks in advance for your help
- Beech0
ah i have worked it out ... a better understanding of xml ... that was the key.
thanks :)
- emmaopeel0
thanks so very much! that was just the advice that I was hoping for...
I also like the efficiency aspect of the swf/embed font linkage solution!
all the best to you!