User Guide Cancel

HTML publishing templates

  1. Adobe Animate User Guide
  2. Introduction to Animate
    1. What's New in Animate
    2. Visual Glossary
    3. Animate system requirements
    4. Animate keyboard shortcuts
    5. Work with Multiple File Types in Animate
  3. Animation
    1. Animation basics in Animate
    2. How to use frames and keyframes in Animate
    3. Frame-by-frame animation in Animate
    4. How to work with classic tween animation in Animate
    5. Brush Tool
    6. Motion Guide
    7. Motion tween and ActionScript 3.0
    8. About Motion Tween Animation
    9. Motion tween animations
    10. Creating a Motion tween animation
    11. Using property keyframes
    12. Animate position with a tween
    13. How to edit motion tweens using Motion Editor
    14. Editing the motion path of a tween animation
    15. Manipulating motion tweens
    16. Adding custom eases
    17. Creating and applying Motion presets
    18. Setting up animation tween spans
    19. Working with Motion tweens saved as XML files
    20. Motion tweens vs Classic tweens
    21. Shape tweening
    22. Using Bone tool animation in Animate
    23. Work with character rigging in Animate
    24. How to use mask layers in Adobe Animate
    25. How to work with scenes in Animate
  4. Interactivity
    1. How to create buttons with Animate
    2. Convert Animate projects to other document type formats
    3. Create and publish HTML5 Canvas documents in Animate
    4. Add interactivity with code snippets in Animate
    5. Creating custom HTML5 Components
    6. Using Components in HTML5 Canvas
    7. Creating custom Components: Examples
    8. Code Snippets for custom Components
    9. Best practices - Advertising with Animate
    10. Virtual Reality authoring and publishing
  5. Workspace and workflow
    1. Creating and managing Paint brushes
    2. Using Google fonts in HTML5 Canvas documents
    3. Using Creative Cloud Libraries and Adobe Animate
    4. Use the Stage and Tools panel for Animate
    5. Animate workflow and workspace
    6. Using web fonts in HTML5 Canvas documents
    7. Timelines and ActionScript
    8. Working with multiple timelines
    9. Set preferences
    10. Using Animate authoring panels
    11. Create timeline layers with Animate
    12. Export animations for mobile apps and game engines
    13. Moving and copying objects
    14. Templates
    15. Find and Replace in Animate
    16. Undo, redo, and the History panel
    17. Keyboard shortcuts
    18. How to use the timeline in Animate
    19. Creating HTML extensions
    20. Optimization options for Images and Animated GIFs
    21. Export settings for Images and GIFs
    22. Assets Panel in Animate
  6. Multimedia and Video
    1. Transforming and combining graphic objects in Animate
    2. Creating and working with symbol instances in Animate
    3. Image Trace
    4. How to use sound in Adobe Animate
    5. Exporting SVG files
    6. Create video files for use in Animate
    7. How to add a video in Animate
    8. Draw and create objects with Animate
    9. Reshape lines and shapes
    10. Strokes, fills, and gradients with Animate CC
    11. Working with Adobe Premiere Pro and After Effects
    12. Color Panels in Animate CC
    13. Opening Flash CS6 files with Animate
    14. Work with classic text in Animate
    15. Placing artwork into Animate
    16. Imported bitmaps in Animate
    17. 3D graphics
    18. Working with symbols in Animate
    19. Draw lines & shapes with Adobe Animate
    20. Work with the libraries in Animate
    21. Exporting Sounds
    22. Selecting objects in Animate CC
    23. Working with Illustrator AI files in Animate
    24. Applying blend modes
    25. Arranging objects
    26. Automating tasks with the Commands menu
    27. Multilanguage text
    28. Using camera in Animate
    29. Graphic filters
    30. Sound and ActionScript
    31. Drawing preferences
    32. Drawing with the Pen tool
  7. Platforms
    1. Convert Animate projects to other document type formats
    2. Custom Platform Support
    3. Create and publish HTML5 Canvas documents in Animate
    4. Creating and publishing a WebGL document
    5. How to package applications for AIR for iOS
    6. Publishing AIR for Android applications
    7. Publishing for Adobe AIR for desktop
    8. ActionScript publish settings
    9. Best practices - Organizing ActionScript in an application
    10. How to use ActionScript with Animate
    11. Accessibility in the Animate workspace
    12. Writing and managing scripts
    13. Enabling Support for Custom Platforms
    14. Custom Platform Support Overview
    15. Working with Custom Platform Support Plug-in
    16. Debugging ActionScript 3.0
    17. Enabling Support for Custom Platforms
  8. Exporting and Publishing
    1. How to export files from Animate CC
    2. OAM publishing
    3. Exporting SVG files
    4. Export graphics and videos with Animate
    5. Publishing AS3 documents
    6. Export animations for mobile apps and game engines
    7. Exporting Sounds
    8. Best practices - Tips for creating content for mobile devices
    9. Best practices - Video conventions
    10. Best practices - SWF application authoring guidelines
    11. Best practices - Structuring FLA files
    12. Best Practices to optimize FLA files for Animate
    13. ActionScript publish settings
    14. Specify publish settings for Animate
    15. Exporting projector files
    16. Export Images and Animated GIFs
    17. HTML publishing templates
    18. Working with Adobe Premiere Pro and After Effects
    19. Quick share and publish your animations
  9. Troubleshooting
    1. Fixed issues
    2. Known issues


About HTML publishing templates

An Animate HTML template is a file that contains static HTML code and flexible template code consisting of a special type of variables (which differ from ActionScript variables). When you publish a SWF file, Animate replaces these variables with the values you select in the HTML tab of the Publish Settings dialog box and produces an HTML page with your SWF file embedded.

Animate includes templates, suitable for most users’ needs, that eliminate the need to manually create an HTML page that displays the SWF file. For example, the Animate Only template is useful for testing your files in a browser. It places the SWF file on the HTML page so that you can view it through a web browser with the Flash Player installed.

To publish a new HTML page, use the same template and change the settings. You can create custom templates using any HTML editor. Creating a template is the same as creating a standard HTML page, except that you replace specific values pertaining to a SWF file with variables that begin with a dollar sign ($).

Animate HTML templates have the following special characteristics:

  • A one-line title that appears on the Template pop‑up menu on the HTML tab of the Publish Settings dialog box.

  • A longer description that appears when you click Info on the HTML tab of the Publish Settings dialog box.

  • Template variables beginning with a dollar sign ($) that specify where parameter values should be substituted when Animate generates the output file.

    note: Use a backslash and dollar sign (\$) combination to use a dollar sign for another purpose in the document.

  • HTML object and embed tags that follow the tag requirements of Microsoft Internet Explorer and Netscape® Communicator® or Navigator®, respectively. To display a SWF file properly on an HTML page, follow these tag requirements. Internet Explorer uses the object HTML tag to open a SWF file; Netscape uses the embed tag.

Customize HTML publishing templates

Modify HTML template variables to create an image map, a text report, or a URL report, or to insert custom values for some of the most common Animate HTML object and embed tag parameters (for browsers that use ActiveX controls and plug-ins, respectively).

Animate templates can include any HTML content for your application or even code for interpreters such as ColdFusion and ASP.

  1. Using an HTML editor, open the Animate HTML template to change. These templates are in the following locations:

    • Windows XP or Vista: boot drive:\Documents and Settings\user\Local Settings\Application Data\Adobe\Flash CS5\language\Configuration\HTML\. The Application Data folder is usually a hidden folder; you might need to change your Windows Explorer settings to see this folder.

    • Mac OS X 10.3 and later: Macintosh HD/Applications/Adobe Flash CS5/language/First Run/HTML.

      The boot drive is the drive from which the Windows operating system boots (usually C:). The user is the name of the person logged in to the Windows operating system. The language is set to an abbreviated language name. For example, in the US, language is set to “en” for English.

  2. Edit the template.
  3. Save the template in the same folder that you retrieved it from.
  4. To apply the template settings to your SWF file, select File > Publish Settings, click HTML, and select the template you modified. Animate changes only the template variables in the template selected.

  5. Select your remaining publish settings, and click OK.

HTML template variables

The following table lists the template variables that Animate recognizes:


Template variable

Template title


Template description start


Template description finish


Animate (SWF file) title


Animate (SWF file) title for search engine metadata


Description for search engine metadata


Metadata XML string for use with search engines








HTML alignment




Parameters for object


Parameters for embed
















Movie text (area to write movie text)


Movie URL (location of SWF file URL)


Image width (unspecified image type)


Image height (unspecified image type)


Image filename (unspecified image type)


Image map name


Image map tag location


QuickTime width


QuickTime height


QuickTime filename


GIF width


GIF height


GIF filename


JPEG width


JPEG height


JPEG filename


PNG width


PNG height


PNG filename


Using shorthand template variables

The $PO (for object tags) and $PE (for embed tags) template variables are useful shorthand elements. Each variable causes Animate to insert into a template any nondefault values for some of the most common object and embed parameters, including PLAY ($PL), QUALITY ($QU), SCALE ($SC), SALIGN ($SA), WMODE ($WM), DEVICEFONT ($DE), and BGCOLOR ($BG).

Sample HTML template

The following Default.HTML template file in Animate includes many of the commonly used template variables:

$TTFlash Only 
Display Adobe SWF file in HTML. 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> 
<html xmlns="" xml:lang="en" lang="en"> 
<body bgcolor="$BG"> 
<!--url's used in the movie--> 
<!--text used in the movie--> 
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="$WI" height="$HE" id="$TI" align="$HA"> 
<param name="allowScriptAccess" value="sameDomain" /> 
<embed $PEwidth="$WI" height="$HE" name="$TI" align="$HA" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="" /> 

Create an image map to substitute for a SWF file

Animate can generate an image map to show any image and maintain the function of buttons that link to URLs. When an HTML template includes the $IM template variable, Animate inserts the image map code. The $IU variable identifies the name of the GIF, JPEG, or PNG file.

  1. In your document, select the keyframe to use for the image map and label it #Map in the frame Property inspector (Window > Properties). Use any keyframe with buttons that have attached ActionScript 1.0 or 2.0 getURL actions.

    If you don’t create a frame label, Animate creates an image map using the buttons in the last frame of the SWF file. This option generates an embedded image map, not an embedded SWF file.

  2. To select the frame to show the image map, do one of the following:
    • For PNG or GIF files, label the frame to appear as #Static.

    • For JPEG, during the publish operation, place the playhead on the frame to be used for display.

  3. In an HTML editor, open the HTML template you’ll modify.
  4. Save your template.
  5. Select File > Publish Settings, click Format, select a format for the image map, and click OK.

    For example, insert the following code in a template:

    <img src=$IS usemap=$IU width=$IW height=$IH BORDER=0>

    This might produce the following code in the HTML document that the Publish command creates:

    <map name="mymovie"> 
    <area coords="130,116,214,182" href=""> 
    <img src="mymovie.gif" usemap="#mymovie" width=550 height=400 border=0>

Creating text and URL reports

The $MT template variable causes Animate to insert all the text from the current SWF file as a comment in the HTML code. This is useful for indexing the content of a SWF file and making it visible to search engines.

The $MU template variable makes Animate generate a list of the URLs that actions in the current SWF file refer to and insert the list at the current location as a comment. This action lets link verification tools detect and verify the links in the SWF file.

Embedding search metadata

The $TL (SWF file title) and $DC (description metadata) template variables let you include search metadata in the HTML. This ability can make the SWF file more visible to search engines, and provide meaningful search results. Use the $MD template variable to include the search metadata as an XML string.

More like this


Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online