To use the Online Generator to process a template, you should refer to the Generator template in an HTML document. The URL for the template file tells the Web server to start the Online Generator and process the template. You can generate Flash Player movie, GIF, JPEG, or PNG files by specifying a type switch on the URL as shown in the following table:
File Type | URL Syntax |
---|---|
Flash File |
path/template.swt?type=swf |
GIF File |
path/template.swt?type=gif |
JPEG File |
path/template.swt?type=jpg |
PNG File |
path/template.swt?type=png |
QuickTime File |
path/template.swt?type=mov |
You can use both document-relative paths (as indicated in the table) or root-relative paths for the URL.
When the output of the Online Generator is a Flash player movie, the URL can be embedded within an <OBJECT> or <EMBED> tag that specifies the Flash 4 player.
For example, here is the Object tag for Internet Explorer:
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" WIDTH=500 HEIGHT=300 BORDER=1> <PARAM NAME=movie VALUE="blimp.swt"> <PARAM NAME=quality VALUE=best> <PARAM NAME=type VALUE="application/x-shockwave-flash"> </OBJECT>
As another example, here is the Embed tag for Netscape Navigator:
<EMBED SRC="GenDemos/blimp/blimp.swt" WIDTH=500 HEIGHT=300 QUALITY=best TYPE="application/x-shockwave-flash"> </EMBED>
For offline generation, the output is static, so you reference the SWF, GIF, JPG or PNG file directly instead of using the template.
For online generation, the template file is referenced with the appropriate type=aaa query string.