I have a flash file that reads an xml file and writes the text on the flash.
The problem I have is when the client does not have the font that I'm using.
I looked on many websites and they always say you have to do the following
- Open the Library panel (Ctrl+L).
- Add a font to your library - click the options menu in the upper right corner of the panel and select New Font from the menu.
- In the Font Symbol Properties dialog box select the font, size and style that you want and give the font combination a name. Click OK to close the dialog box.
- Right-click the font symbol in the library and select Linkage from the contextual menu.
- In the Linkage Properties dialog box, click the Export for ActionScript button to enable both the Identifier and AS 2.0 Class text input fields. Leave the default Identifier value and click OK to close the dialog box.
- Select the text tool from the Tools panel and draw a dynamic text field on the Stage.
- Give the text field an instance name of "my_txt". In the Font menu select the symbol name you gave the embedded font earlier. You should see a little asterisk (*) beside the name.
- In the Property inspector set the font size and style to match those in the Font Symbol Properties dialog box earlier.
- Open the Actions Panel and add the following code to Frame 1 of your Flash document:
my_fmt.font = "Palatino";
new_txt.embedFonts = true;
new_txt.text = "hello world";
http://www.flash-mx.com/news/archives/000136.cfm
But this only works if you create those text fields on the flash scene.
In my case, I only have an action script that reads that xml file and writes the text on the file. I don't need to manually create those "dynamic" text fields.
Any help would be appreciated.