[Html] details about flash attributes of param and embed

Source: Internet
Author: User

This article mainly introduces some flash attributes and Their attribute values in the param and embed labels.

First, we need to know that the param and embed labels appear separately, rather than in pairs. The following code is the General Embedded flash code:

<! Doctype html> 

Note:Unless otherwise specified, all attributes apply to the param label and embed label at the same time. Optional attributes are also listed here. Internet Explorer can recognize the attributes of the param label, While Netscape can recognize the attributes of the embed label.

Attribute Attribute Value Description
Devicefont True | false (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 Xxx.swf Name of the SWF file to be loaded. Only applicable to embed.
Movie Xxx.swf Name of the SWF file to be loaded. Applicable only to param.
Autoplay True | false (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 True | false (Optional) specifies whether the Flash content is replayed or stopped without limit after it reaches the last frame. If this attribute is ignored, the default value is true.
Quality Low | medium | high | autolow | autohigh | best

(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. You can use this setting to simulate the "" command in Flash ("View"> "Preview mode"> "").

"Medium" will apply some anti-aliasing functions, but will 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 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 Hexadecimal RGB Value (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 Showall | noborder | exactfit | noscale

(Optional) when the width and height values are percentages, define how the application is placed in a browser window.

"Showall" 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 Flash content to fill the specified area without being distorted. It will keep 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.

"Noscale" makes Falsh content not zoom, original proportion

If this attribute is ignored (and the width and height values are percentages), the default value is showall.

Salign L | R | T | B | TL | TR | BL | BR

(Optional) Specify 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 Basic directory or URL

(Optional) Specify 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 True | false

(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" indicates 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 Window | opaque | transparent

(Optional) allows you to use transparent Flash content, absolute positioning, and hierarchical display in Internet Explorer 4.0. This tag/attribute is only valid in Windows with the Flash Player ActiveX control.

The default value of "window" is always at the top layer of HTML.

"Opaque" allows the upper layers of Flash to be blocked by webpages.

"Transparent" enables the background of the HTML page to be displayed through all the transparent parts of the application, which may reduce the animation performance.

Allowscriptaccess Always | never | samedomain

(Optional) Use allowscriptaccess to enable the Flash application to communicate with the HTML page hosting it.

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.

If this attribute is ignored, the default value is samedomain.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.