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

Chapter 16. Publishing Your Work > Understanding Templates

Understanding Templates

You need to set numerous HTML settings and parameters if you want your movie to look and function properly. There are width and height settings, playback options, and even JavaScript in some cases. Some of us use custom HTML pages (with custom JavaScript perhaps) to place our Flash content. With the exception of a few changing attributes, these custom HTML pages could be used for many Flash movies. After all, writing Player detection scripts and filling in parameters every time you want to place a Flash movie on a Web page—especially if you only want to change a few things—quickly becomes tedious. However, by using templates in conjunction with the Publish feature, you can easily fill in attributes that affect not only what movie goes on the page but also how your movie will look and play back in the Web browser. You can even eliminate the need to edit an HTML page that contains a Flash movie. This is because the template is created once with variables placed in specific places within the template. Using the Publish feature, you then fill in specific information (<OBJECT> and <EMBED> attributes) about the way you want this movie to appear and play back in the browser window. When you publish to HTML, the variables in the template you select are replaced with the information you entered. The resulting document is an HTML page with your movie embedded. You could easily use the same template, enter different settings in the HTML tab of the Publish settings dialog box, and output a new HTML page.

The Process

There are essentially three stages in creating and using templates:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint