SoFunction
Updated on 2025-04-11

Collected detailed explanation of param attributes and properties of FLASH

Detailed explanation of FLASH's param attributes and properties
<object class codebase="/pub/shockwave/cabs/flash/#version=6,0,29,0" width="580" height="110">
<param name="_cx" value="10372">
<param name="_cy" value="2355">
<param name="FlashVars" value="-1">
<param name="Movie" value="">
<param name="Src" value="">
<param name="WMode" value="Transparent">
<param name="Play" value="-1">
<param name="Loop" value="-1">
<param name="Quality" value="High">
<param name="SAlign" value>
<param name="Menu" value="0">
<param name="Base" value>
<param name="AllowScriptAccess" value="always">
<param name="Scale" value="ShowAll">
<param name="DeviceFont" value="0">
<param name="EmbedMovie" value="0">
<param name="BGColor" value>
<param name="SWRemote" value>
<embed src="" width="580" height="110" quality="high" pluginspage="/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>
</object>
Parameters and properties
The following tag properties 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 identify parameters for object tags, while Netscape can identify parameters for embed tags. Attributes can be used for both object tags and embed tags. When customizing a template, you can replace the corresponding value with the template variable listed here. Please see Custom HTML Publish Template.
Note: The properties and parameters listed in this section are specially displayed in lowercase letters to comply with the XHTML standard.
devicefont attribute/parameter
Value: true | false
Template variable: $DE
illustrate:
(Optional) For static text objects with the Device Font option not selected, specify whether to still use the device font for drawing (if the operating system provides the desired font).
src attribute
Value:
Template variable: $MO
Description: Specify the name of the SWF file to be loaded. Applicable only to embed.
movie parameter
Value:
Template variable: $MO
Description: Specify the name of the SWF file to be loaded. Applicable only to object.
classid attribute
Value: clsid:D27cdb6e-ae6d-11cf-96b8-444553540000
Description: ActiveX control that identifies the browser. The entered value must be exactly the same as the above display. Applicable only to object.
width attribute
Value: n  or n%
Template variable: $WI
Description: Specify the width of the application as a pixel value or a percentage value of the browser window.
height attribute
Value: n  or n%
Template variable: $HE
Description: Specify the height of the application as a pixel value or a percentage value of the browser window.
Note: Because Flash applications are scalable, their quality will not decrease regardless of size as long as the aspect ratio remains the same. (For example, the aspect ratios of the following sizes are 4:3:640 x 480 pixels, 320 x 240 pixels, and 240 x 180 pixels.)
codebase attribute
Value: /flash7/cabs/#version=7,0,0,0
Description: Identify the location of the Flash Player ActiveX control so that the browser can automatically download the control when it has not been installed. The entered value must be exactly the same as the above display. Applicable only to object.
pluginspage attribute
Value: /shockwave/download/?P1_Prod_Version=ShockwaveFlash
Description: Identify the location of the Flash Player plug-in so that users can download it when the plug-in has not been installed. The entered value must be exactly the same as the above display. Applicable only to embed.
swliveconnect attribute
Value: true | false
Description: (Optional) Specifies whether the browser should start Java when Flash Player is loaded for the first time. If this property is ignored, the default value is false. If JavaScript and Flash are used on the same page, the Java must be in running state before the FSCommand() function can work. However, if you run JavaScript just to detect the browser or for other purposes that are not related to the fscommand() action, you can prevent Java from starting by setting SWLIVECONNECT to false. When JavaScript and Flash are not used together, Java can also be forced to start by explicitly setting the SWLIVECONNECT property to true. Starting Java significantly increases the time it takes to start the SWF file, so this flag should be set to true only if necessary. Applicable only to embed.
Use the fscommand() action to start Java from a standalone projection file.
play attributes/parameters
Value: true | false
Template variable: $PL
Description: (Optional) Specifies whether the application starts playing when it loads in the browser. If your Flash application is interactive, you can let the user start playing by clicking a button or performing some other task. In this case, setting the play attribute to false can prevent the application from automatically starting playback. If this property is ignored, the default value is true.
loop attributes/parameters
Value: true | false
Template variable: $LO
Description: (Optional) Specify whether Flash content is played unlimitedly or stopped after it reaches the last frame. If this property is ignored, the default value is true.
quality attributes/parameters
Value: low | medium | high | autolow | autohigh | best
Template variable: $QU
Description: (Optional) Specifies the level of anti-aliasing used during application playback. Because eliminating the aliasing requires a faster processor to smooth each frame of the SWF file first, and then present them on the audience screen, you need to select a value based on whether you want to optimize the speed or the appearance:
"Low" takes playback speed priority over appearance and never uses anti-aliasing.
"Autolow" prioritizes speed, but also improves the appearance as much as possible. When playback begins, the anti-aliasing function is turned off. If Flash Player detects that the processor can handle the anti-aliasing function, the function will be turned on.
"Autohigh" starts with both playback speed and appearance, but sacrifices appearance to ensure playback speed when necessary. When playback begins, the anti-aliasing function is on. If the actual frame rate drops below the specified frame rate, the anti-aliasing function is turned off to increase playback speed. Use this setting to simulate the "Anti-aliasing" command in Flash (View > Preview Mode > Anti-aliasing) .
"Medium" applies some anti-aliasing, but does not smooth the 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 priority over playback speed, and it always applies anti-aliasing. If the SWF file does not contain animations, the bitmap will be smoothed; if the SWF file contains animations, the bitmap will not be smoothed.
"Best" provides the best display quality regardless of playback speed. All outputs are unaliased and all bitmaps are smoothed.
If the quality attribute is ignored, its default value is high.
bgcolor attribute/parameter
Value: #RRGGBB (hexadecimal RGB value)
Template variable: $BG
Description: (Optional) Specify the background color of the application. Use this property to override the background color settings specified in the Flash SWF file. This attribute does not affect the background color of the HTML page.
scale attribute/parameter
Value: showall | noborder | exactfit
Template variable: $SC
Description: (Optional) Define how the application is placed in the browser window when the width and height values ​​are percentages.
"Showall" (default) makes the entire Flash content appear in the specified area without distortion while maintaining its original aspect ratio. Borders may appear on both sides of the application.
"Noborder" scales Flash content to fill the specified area without distortion, it keeps the application original aspect ratio, but may do some cropping.
"Exactfit" causes the entire Flash content to be displayed in the specified area, but does not attempt to maintain the original aspect ratio. Distortions may occur.
If this property is ignored (and the width and height values ​​are percentages), its default value is showall.
align attribute
Value: Default | L | R | T | B
Template variable: $HA
Description: Specify the align values ​​of the object, embed and img tags, and determine how to place the Flash SWF file in the browser window.
"Default" causes the application to be centered within the browser window, and if the browser window is smaller than the application, the edges are cropped.
L, R, T, and B allow the application to align along the left, right, upper and lower edges of the browser window respectively, and crop the remaining three sides as needed.
Salign Parameters
Value: L | R | T | B | TL | TR | BL | BR
Template variable: $SA
Description: (Optional) Specify the location of the scaled Flash SWF file within the area defined by width and height settings. For more information about these conditions, see scale properties/parameters.
L, R, T, and B allow the application to align along the left, right, upper and lower edges of the browser window respectively, and crop the remaining three sides as needed.
TL and TR make the application align with the upper left and upper right corners of the browser window respectively, and crop the bottom edge and the remaining right or left edge as needed.
BL and BR have the application align with the lower left and lower right corners of the browser window respectively, and crop the top edge and the remaining right or left edges as needed.
If this property is ignored, the Flash content will be displayed in 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 property is very useful if the SWF file is saved in a different directory than your other files.
menu Properties/parameters
Value: true | false
Template variable: $ME
Description: (Optional) Specifies the type of menu that will be displayed when the audience right-clicks (Windows) or holds the Command-clicks (Macintosh) application area in the browser.
"true" displays a complete menu, allowing users to enhance or control playback using various options.
"false" displays a menu that only contains the "About Macromedia Flash Player 6" option and the "Settings" option.
If this property is ignored, the default value is true.
wmode attribute/parameter
Value: Window | Opaque | Transparent
Template variable: $WM
Description: (Optional) Enables you to use the transparent Flash content, absolute positioning and layered display functions in Internet Explorer 4.0. This tag/property is only valid in Windows with Flash Player ActiveX control.
"Window" plays the application on the web page using the video's own rectangular window. "Window" indicates that the Flash application has no interaction with the HTML layer and is always at the top level.
"Opaque" makes the application hide everything on the page that is behind it.
"Transparent" enables the background of the HTML page to be displayed through all transparent parts of the application, which may reduce 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 these two options is that "Transparent" allows transparency, so if a part of the SWF file is transparent, the HTML layer below the SWF file can be displayed through that part.
If this property is ignored, the default value is Window. Applicable only to object.
allowscriptaccess attribute/parameter
Value: always | never | samedomain
Note: Use allowscriptaccess to enable the Flash application to communicate with the HTML page that hosts it. This parameter is required because the fscommand() and getURL() operations may cause JavaScript to use the permissions of HTML pages, which may be different from the permissions of the Flash application. This has a significant relationship with cross-domain security.
always Allows script operations to be executed at any time.
never Shield all scripts for execution.
samedomain The script operation is only allowed if the Flash application comes from the same domain as the HTML page.
The default value used by all HTML publishing templates is sameomain.