This content has been marked as final. Show 4 replies
you must have a font linked for export to set the font property of your textformat object, myformat. you can do that by embedding that font in a textfield in the authoring environment that's instantiated in frame that plays no later than you code executes or you can link a font for export by adding one to your library (click on the upper right corner of you library panel, click new font, select the font you want to use and click ok), right clicking on it in your library, click linkage, tick export for actionscript, give it a linkage id or adri and click ok. retest your code.
You have to embed the font in the library to use a non-system font. Here's how:
1. Right click on the library background (or click the drop down panel menu) and select New Font.
2. Select your font, style, etc and click ok.
3. Once it is in the library, right click the font and goto linkage - give it the desired name, and click export on first frame.
4. Now use the name you gave it in linkage for the textformat font property.
One last thing to get it to work:
text_box.embedFonts = true;
If you don't do this the font won't show up, so make sure you set it before applying the format.
that's correct. something must be in your swf's library: either a font or a textfield that has that font embedded.