
384
USING FLASH CS4 PROFESSIONAL
Publishing and Exporting
Omit Trace Actions
Causes Flash to ignore ActionScript
trace
statements in the current SWF file. When you select
this option, information from
trace
statements does not appear in the Output panel. For more information, see
“
Output panel overview
” on page 358.
Permit Debugging
Activates the Debugger and allows remote debugging of a Flash SWF file. Lets you use password
protection with your SWF file.
9
If you are using ActionScript 2.0, and selected either Permit Debugging or Protect From Import, enter a password
in the Password text field. If you add a password, other users must enter the password before they can debug or
import the SWF file. To remove the password, clear the Password text field. For more information on the Debugger,
see “
Debugging ActionScript 1.0 and 2.0
” on page 350. If you are using ActionScript 3.0, see “
Debugging
ActionScript 3.0
” on page 360.
10
Select the Flash security model to use from the Local Playback Security pop-up menu. Specify whether to grant your
published SWF file local or network security access. Local Access Only lets the published SWF file interact with files
and resources on the local system but not on the network. Access Network Only lets the published SWF file interact
with files and resources on the network but not on the local system.
11
To enable the SWF file to use hardware acceleration, select one of the following options from the Hardware
Acceleration menu:
Level 1 - Direct
Direct mode improves playback performance by allowing Flash Player to draw directly on the screen
instead of letting the browser do the drawing.
Level 2 - GPU
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.
12
To set a maximum time that scripts can take to execute in the SWF file, enter a value for the Script Time Limit. Flash
Player cancels execution of any scripts that exceed the limit.
See also
“
Using publish profiles
” on page 397
“
Sound
” on page 273
“
Using sounds in Flash Lite
” on page 277
Specify publish settings for HTML documents
Playing Flash 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 HTML parameters in a 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.
Updated 5 March 2009