Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The standard practice is to test a Flash project or SWF within an
HTML file. The big plus with this approach is that if we need to test
using FlashVars, we can do so with relative ease from within the HTML. So
next we will create an HTML file from scratch. We’ll do this via the
echo task in Ant, because it allows us
to easily write to a file. But how do we automatically get the project
properties in our HTML? Well, we are going to do something new here: work
with tokens, and replace them with real values.
The advantage with token replacement is that we can work with template files—whether they are physically on the filesystem, or saved in properties/strings and generated with code. For now, we are choosing the latter.