To function properly, all TLF text objects rely on a specific TLF ActionScript library, also called a Runtime Shared Library or RSL. During authoring, Flash provides the library. At runtime, after you have uploaded your published SWF file to a web server, the library is provided in the following ways:
- The local computer. Flash Player looks for a copy of the library on the local machine it is playing on. If the SWF file is not the first to use TLF text on that computer, the computer already has a local copy of the library in its Flash Player cache. Once TLF text has been in use on the Internet for some time, most end-user computers will have a local copy of the library file.
- On Adobe.com. If no local copy is available, Flash Player will query Adobe’s servers for a copy of the library. The library only has to download one time per computer. After that, all subsequent SWF files that play on the same computer will use the previously downloaded copy of the library.
- Next to the SWF file on the web server. If Adobe’s servers are not available for some reason, Flash Player looks for the library in the web server directory where the SWF file resides. To provide this extra level of back-up, manually upload the library file to the web server along with your SWF file. More information about the assets file is provided below.
When you publish a SWF file that uses TLF text, Flash creates an additional file named textLayout_X.X.X.XXX.swz (where the X’s are replaced by the version number) next to your SWF file. You can optionally choose to upload this file to your web server along with your SWF file. This allows for the rare case where Adobe’s servers are not available for some reason.
You can also avoid the need for Flash Player to do a separate download of the TLF assets by compiling the assets within your SWF file. You can do this in the ActionScript settings of your FLA file. However, remember that these assets add significantly to the size of your published SWF file and is not necessary in most cases.
To compile the TLF ActionScript assets in published SWF files:
- Choose File > Publish Settings.
- Click the Flash Tab.
- Click the Settings button next to the Script menu.
- Click the Library Path tab.
- Select Merged Into Code from the Default Linkage menu.
The following are recommendations for handling the TLF library for different deployment scenarios
- Web-based SWF file: use the default behavior of allowing Flash Player to download the RSL if necessary.
- AIR-based SWF file: Compile the RSL into the SWF file. This way text functionality of the AIR application will not be compromised while offline.
- iPhone-based SWF: It is not recommended that you use TLF on the iPhone for performance reasons. If you do, compile the TLF code into the SWF because the iPhone cannot load RSLs.
When the TLF ActionScript assets are not embedded or available on the local playback computer, there can be a slight delay in SWF playback while Flash Player downloads the assets. You can choose the type of preloader SWF that Flash Player displays while the assets are downloaded. You choose the preloader by setting the Preloader Method in the ActionScript 3.0 settings.
To set the Preloader Method:
- Choose File > Publish Settings.
- In the Flash tab, click the ActionScript 3.0 Settings button.
- In the Advanced ActionScript 3.0 Settings dialog box, select a method from the Preloader Method menu. The available methods are:
- Preloader SWF: this is the default. Flash embeds a small preloader SWF file inside your published SWF file. This preloader displays a progress bar while the assets load.
- Custom Preloader Loop: use this setting is you want to use a preloader SWF of your own.
The Preloader Method setting is only available if the Default Linkage is set to Runtime Shared Library (RSL).




Trackbacks/Pingbacks
[...] TLF text requires that ActionScript 3.0 and Flash Player 10 or higher are specified in the publish settings of your FLA file. For more information see Publish settings. [...]
[...] Read more: How to Publish SWF files with TLF text | Flash tutorials | Flash … [...]
[...] How to Publish SWF files with TLF text | Flash tutorials | Flash video tutorials | Flash actionscrip… [...]
[...] Adres URL: How to Publish SWF files with TLF text | Flash tutorials | Flash … [...]