
389
USING FLASH CS4 PROFESSIONAL
Publishing and Exporting
bgcolor attribute/parameter
(Optional) Specifies the background color of the application. Use this attribute to
override the background color setting that the SWF file specifies. This attribute does not affect the background color
of the HTML page.
Value:
#RRGGBB
(hexadecimal RGB value)
Template variable:
$BG
scale attribute/parameter
(Optional) Defines how the application is placed in the browser window when
width
and
height
values are percentages.
•
Showall (Default)
Makes the entire content visible in the specified area without distortion while maintaining the
original aspect ratio of the application. Borders can appear on two sides of the application.
•
Noborder
Scales the content to fill the specified area, without distortion but possibly with some cropping, while
maintaining the original aspect ratio of the application.
•
Exactfit
Makes the entire content visible in the specified area without trying to preserve the original aspect ratio.
Distortion can occur.
The default value is
showall
if this attribute is omitted (and
width
and
height
values are percentages).
Value:
showall | noborder | exactfit
Template variable:
$SC
align attribute
Specifies the
align
value for the
object
,
embed
, and
img
tags and determines how the SWF file is
positioned within the browser window.
•
Default
Centers the application in the browser window and crops edges if the browser window is smaller than the
application.
•
L, R, T, and B
Align the application along the left, right, top, or bottom edge, respectively, of the browser window
and crop the remaining three sides as needed.
Value:
Default | L | R | T | B
Template variable:
$HA
salign parameter
(Optional) Specifies where a scaled SWF file is positioned in the area that the
width
and
height
settings define.
•
L, R, T, And B
Align the application along the left, right, top, or bottom edge, respectively, of the browser window
and crop the remaining three sides as needed.
•
TL And TR
Align the application to the top-left and top-right corner, respectively, of the browser window and crop
the bottom and remaining right or left side as needed.
•
BL And BR
Align the application to the bottom-left and bottom-right corner, respectively, of the browser window
and crop the top and remaining right or left side as needed.
If this attribute is omitted, the content is centered in the browser window.
Value:
L | R | T | B | TL | TR | BL | BR
Template variable:
$SA
base attribute
(Optional) Specifies the base directory or URL used to resolve all relative path statements in the SWF
file. This attribute is helpful when you keep SWF files in a different folder from your other files.
Value: base directory or URL
Updated 5 March 2009