07.08.2010
This tutorial uses ActionScript 2.0, for ActionScript 3.0 follow this one ..
The following is a step-by-step tutorial for using shared fonts in Flash with the use of Arabic Parsing solution:
- Create New Flash file to store shared fonts, in this case “arabic_fonts.fla”
- Create new MovieClip symbol, in this case “arabic_fonts” and check the option “Export for runtime sharing”, in this case “arabic_fonts.swf”
- Edit “arabic_fonts” MovieClip and create as many TextFields as you require, each with specific font to be shared
- Select each TextField individually and embed fonts from the properties panel
- Make sure you have checked the Arabic glyphs and you have chosen font name for linkage
- Complie the output movie, save and close “arabic_fonts.fla”
- Open your rendering Flash file, in this case “arabic_as2.fla” located in the same directory with “arabic_fonts.fla”
- Create new MovieClip symbol and give it the exact same name for the shared library symbol, in this case “arabic_fonts”, then check the option “Import for runtime sharing”, in this case “arabic_fonts.swf”
When asked to edit the newly created symbol, make sure that you choose “No”
- Drag and instance of “arabic_fonts” MovieClip off-stage
- Compile the output movie, you should see fonts displayed correctly
- Download sample files here
