资 源 简 介
The Problem
In creating Flash banners, we often have a lot of text that may change multiple times before we ship. The most obvious solution would be to store the language in XML files and load it in at runtime, but we don’t have that luxury in the world of banners, where any extra kilobyte of load code may take us over our filesize limits.
The Solution
Enter JSFL. For those not yet in the know, it’s scripting for the Flash IDE – Javascript files which can control many aspects of the interface, like manipulating the library, timeline, tweens, renaming, organizing and more. I had a hunch that I could build something that would perform the text-switching functions of XML Language loading, but at authoring time instead of runtime, simplifying the resulting XML file.
How it works
You create a text file which lists object names and the text they should have (the download includes an example file). It’s XML-like, but simplified to be easy to read an