beautypg.com

Specify publish settings for html wrapper files – Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 522

background image

Level 1 - Direct

Level 2 - GPU

To the top

Note:

To the top

Direct mode improves playback performance by allowing Flash Player to draw directly on the screen instead of letting the

browser do the drawing.

In GPU mode, Flash Player utilizes the available computing power of the graphics card to perform video playback and

compositing of layered graphics. This provides another level of performance benefit depending on the user's graphics hardware. Use this
option when you expect that your audience will have high-end graphics cards.

If the playback system does not have sufficient hardware to enable acceleration, Flash Player reverts to normal drawing mode automatically.
For best performance on web pages containing multiple SWF files, enable hardware acceleration for only one of the SWF files. Hardware
acceleration is not used in Test Movie mode.

When you publish your SWF file, the HTML file that embeds it contains a wmode HTML parameter. Choosing Level 1 or Level 2 hardware

acceleration sets the wmode HTML parameter to “direct” or “gpu” respectively. Turning on hardware acceleration overrides the Window

Mode setting you may have chosen in the HTML tab of the Publish Settings dialog box, because it is also stored in the wmode parameter in

the HTML file.

Specify publish settings for SWC files and projectors

A

SWC

file is used for distributing components. The SWC file contains a compiled clip, the component's ActionScript class file, and other files that

describe the component.

Projectors are Flash files that contain both the published SWF and Flash Player. Projectors can play like an ordinary application, without the need
for a web browser, the Flash Player plugin, or Adobe AIR.

To publish a SWC file, select SWC from the left column of the Publish Settings dialog and click Publish.

To publish a Windows Projector, select Win Projector from the left column and click Publish.

To publish a Macintosh Projector, select Mac Projector from the left column and click Publish.

To save the SWC file or projector with a different file name that the original FLA file, enter a name for the Output File.

(Flash Professional CS6 and later versions) Projectors are not supported.

Specify publish settings for HTML wrapper files

Playing Flash Pro content in a web browser requires an HTML document that activates the SWF file and specifies browser settings. The Publish
command automatically generates this document from parameters in an HTML template document.

The template document can be any text file that contains the appropriate template variables—including a plain HTML file, a file that includes code
for special interpreters such as ColdFusion® or Active Server Pages (ASP), or a template included with Flash Pro.

To manually enter HTML parameters for Flash Pro or customize a built-in template, use an HTML editor.

HTML parameters determine where the content appears in the window, the background color, the size of the SWF file, and so on, and set
attributes for the object and embed tags. Change these and other settings in the HTML panel of the Publish Settings dialog box. Changing these

settings overrides options you’ve set in the SWF file.

Specify the settings

1. Select File > Publish Settings and click the HTML Wrapper category from the left column of the dialog box.

2. Use the default filename, which matches the name of your document, or enter a unique name, including the .html extension.

515