Parameters and attributes
The following tag attributes and parameters describe the HTML code created by the "publish" command. You can refer to this list when writing your own HTML for displaying Flash content. Unless otherwise specified, all entries apply to both the object tag and the embed tag. Optional entries are also listed here. Internet Explorer can recognize parameters used for object marking, While Netscape can recognize parameters used for embed marking. Attributes can be used for both object marking and embed marking. When customizing a template, you can use the template variables listed here to replace the corresponding values. See custom HTML publishing templates.
Note: The attributes and parameters listed in this section are specially displayed in lowercase letters to conform to the XHTML standard.
Devicefont attributes/parameters
Value: True | false
Template variable: $ de
Note:
(Optional) for static text objects that do not select the "device font" option, specify whether to still use the device font for painting (if the OS provides the required font ).
SRC Properties
Value: moviename.swf
Template variable: $ Mo
Description: name of the SWF file to be loaded. Only applicable to embed.
Movie Parameters
Value: moviename.swf
Template variable: $ Mo
Description: name of the SWF file to be loaded. Only applies to objects.
Classid attributes
Value: clsid27cdb6e-ae6d-11cf-96b8-444553540000
Description: ActiveX control that identifies the browser. The input value must be exactly the same as that shown above. Only applies to objects.
Width attribute
Value: N or N %
Template variable: $ wi
Description: The application width is specified based on the pixel value or the percentage value of the browser window.
Height attribute
Value: N or N %
Template variable: $ he
Note: The application height is specified by the pixel value or the percentage value of the browser window.
Note: flash applications can be scaled, so as long as the aspect ratio remains unchanged and play at any size, their quality will not decrease. (For example, the following dimensions have a Aspect Ratio of 4: 3: 640x480 pixels, 320x240 pixels, and 240x180 pixels .)
Codebase attributes
Value: active.macromedia.com/flash7/cabs/swflash.cab?version=7,0, 0, 0
Specifies the position of the Flash Player ActiveX control so that the browser can automatically download the control before it is installed. The input value must be exactly the same as that shown above. Only applies to objects.
Pluginspage attributes
Value: www.macromedia.com/shockwave/download/index.cgi? P1_prod_version = shockwaveflash
Specifies the position of the Flash Player Plug-in so that you can download the plug-in before it is installed. The input value must be exactly the same as that shown above. Only applicable to embed.
Swliveconnect attributes
Value: True | false
Note: (optional) specifies whether the browser should start Java when the flash player is loaded for the first time. If this attribute is ignored, the default value is false. If JavaScript and Flash are used on the same page at the same time, Java must be in the running state, and the fscommand () function can work. However, if you run javascript only to detect the browser or for other purposes unrelated to the fscommand () action, you can set swliveconnect to false to prevent Java from starting. When JavaScript and Flash are not used together, you can also set the swliveconnect attribute to true to force Java to start. Starting Java significantly increases the time required to start the SWF file. Therefore, this flag should be set to true only when necessary. Only applicable to embed.
You can use the fscommand () Action to start Java from an independent projection file.
Play attributes/parameters
Value: True | false
Template variable: $ pl
Description: (optional) specifies whether the application starts playing when it is loaded in the browser. If your flash application is interactive, you can click a button or execute some other tasks to start playing. In this case, you can set the play attribute to false to disable automatic playback of applications. If this attribute is ignored, the default value is true.
Loop attributes/parameters
Value: True | false
Template variable: $ Lo
Note: (optional) Specifies whether to play the Flash content repeatedly or stop it after it reaches the last frame. If this attribute is ignored, the default value is true.
Quality Attributes/parameters
Value: Low | medium | high | autolow | autohigh | best
Template variable: $ Qu
Description: (optional) specifies the offset level used during application playback. This is because the faster processor needs to smoothly process each frame of the SWF file before presenting them to the viewer's screen, therefore, you need to select a value based on the speed or appearance:
"Low" gives playback speed precedence over appearance and never uses the anti-aliasing function.
"Autolow" gives priority to speed, but it also improves the appearance as much as possible. When playback starts, the anti-aliasing function is disabled. This function is enabled if Flash Player detects that the processor can process the anti-aliasing function.
"Autohigh" focuses on playback speed and appearance at the beginning, but sacrifices the appearance to ensure playback speed when necessary. At the start of playback, the feature is enabled. If the actual frame rate falls below the specified frame rate, the anti-aliasing function is disabled to increase the playback speed. Use this setting to simulate the "" command (""> "Preview mode"> "") in flash ").
"Medium" applies some anti-aliasing functions, but does not smooth bitmap. The image quality generated by this setting is higher than the image quality generated by the "low" setting, but lower than the image quality generated by the "high" setting.
"High" gives the appearance a precedence over playback speed, and it always applies the anti-aliasing function. If the SWF file does not contain an animation, the bitmap is processed smoothly. If the SWF file contains an animation, the bitmap is not processed smoothly.
"Best" provides the best display quality, regardless of playback speed. All outputs are de-sawtooth and all bitmaps are processed smoothly.
If the quality attribute is ignored, the default value is high.
Bgcolor attributes/parameters
> Value: # rrggbb (hexadecimal RGB value)
Template variable: $ BG
Description: (optional) specifies the background color of the application. This attribute is used to overwrite the background color settings specified in the Flash SWF file. This attribute does not affect the background color of the HTML page.
Scale attributes/parameters
Value: showall | noborder | exactfit
Template variable: $ SC
Note: (optional) when the width and height values are percentages, define how the application is placed in a browser window.
"Showall" (default) enables the entire Flash content to be displayed in the specified area without being distorted, while maintaining its original aspect ratio. The border may appear on both sides of the application.
"Noborder" scales the FL ash content to fill the specified area without any distortion. It keeps the application in the original aspect ratio, but may crop it.
"Exactfit" displays the entire Flash content in the specified area, but does not try to maintain the original aspect ratio. It may be distorted.
If this attribute is ignored (and the width and height values are percentages), the default value is showall.
Align attributes
Value: Default | L | r | T | B
Template variable: $ ha
Description: Specify the align values marked by object, embed, and IMG, and determine how to place the Flash SWF file in the browser window.
By default, the application is displayed in the center of the browser window. If the browser window is smaller than the application, the edge is cropped.
L, R, T, and B Let the application align along the left, right, top, and bottom edges of the browser window respectively, and cut the remaining three sides as needed.
Salign Parameters
Value: l | r | T | B | TL | tr | BL | br
Template variable: $ SA
(Optional) specifies the position of the scaled Flash SWF file in the area defined by the width and height settings. For more information about these conditions, see scale attributes/parameters.
L, R, T, and B Let the application align along the left, right, top, and bottom edges of the browser window respectively, and cut the remaining three sides as needed.
TL and TR align the application with the upper-left corner and upper-right corner of the browser window respectively, and crop the bottom edge and the remaining right or left edge as needed.
BL and BR align the application with the lower left and lower right corner of the browser window respectively, and crop the top and remaining right or left edges as needed.
If this attribute is ignored, the Flash content is displayed in the center of the browser window.
Base attribute
Value: Basic directory or URL
Description: (optional) specifies the basic directory or URL used to parse all relative path statements in the Flash SWF file. This attribute is useful if the SWF file is stored in a directory different from other files.
Menu attributes/parameters
Value: True | false
Template variable: $ me
Note: (optional) specifies the menu type that will be displayed when the audience right-click (Windows) in the browser or press and hold the command key to click (Macintosh) the application area.
"True" displays the complete menu, allowing you to use various options to enhance or control playback.
"False" displays a menu that only contains the "about Macromedia Flash Player 6" option and "set" option.
If this attribute is ignored, the default value is true.
Wmode attributes/parameters
Value: Window | opaque | transparent
Template variable: $ Wm
Note: (optional) You can use the transparent Flash content, absolute positioning, and hierarchical display functions in Internet Explorer 4.0. This tag/attribute is only valid in windows with the Flash Player ActiveX control.
"Window" uses the film's own rectangular window on the Web page to play the application. "Window" indicates that the flash application has no interaction with the HTML layer and is always at the top layer.
"Opaque" hides all content on the page after the application.
"Transparent" enables the background of an HTML page to be displayed through all the transparent parts of the application, which may reduce the animation performance.
Both "Opaque windowless" and "transparent windowless" can interact with the HTML layer and allow the layer above the SWF file to mask the application. The difference between the two options is that "Transparent" allows transparency. Therefore, if a part of the SWF file is transparent, the HTML layer below the SWF file can be displayed through this part.
If this attribute is ignored, the default value is window. Only applies to objects.
AllowScriptAccess attributes/parameters
Value: Always | never | samedomain
Note: Use allowScriptAccess to enable Flash applications to communicate with HTML pages that carry them. This parameter is required because the fscommand () and geturl () operations may result in Javascript permission to use HTML pages, which may be different from that of flash applications. This is important to cross-origin security.
Always allows you to perform script operations at any time.
Never prohibits all scripts from performing operations.
Samedomain allows script operations only when the flash application comes from the same domain as the HTML page.
The default values of all HTML publishing templates are samedomain.