Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Automation > Setting Up the HTML File

Setting Up the HTML File

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.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint