"HTML" param and Embed's detailed description of Flash properties

Source: Internet
Author: User

This article focuses on some of the properties and their property values for flash in the Param and embed tags.

First we need to know that the Param and embed tags appear separately, not in pairs, and the following code is the general Flash nested code:

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "Utf-8"/>    <title>Flash nesting</title></Head><Body>    <Objectwidth= "468"Height= "287"codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"ClassID= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">        <paramname= "movie"value= "/media/v1/default_v1.1.swf"/>        <paramname= "Quality"value= "High"/>        <paramname= "Wmode"value= "Transparent"/>        <Embedwidth= "468"Height= "287"type= "Application/x-shockwave-flash"pluginspage= "Http://www.macromedia.com/go/getflashplayer"Quality= "High"Wmode= "Transparent"src= "/media/v1/default_v1.1.swf"/>    </Object></Body></HTML>

Note: Unless otherwise noted, all properties apply to both the Param label and the embed label, and the optional attributes are listed here. Internet Explorer recognizes the properties of the Param tag, while Netscape identifies the properties of the embed tag.

Property Property value Description
Devicefont true | False Optionally, for static text objects that do not have the Device Font option selected, specify whether to still draw with the device font if the operating system provides the desired font.
Src xxx.swf Specifies the name of the SWF file to load. Applies to embed only.
Movie xxx.swf Specifies the name of the SWF file to load. Applies to Param only.
AutoPlay true | False Optionally specifies whether the application starts playing when it is loaded in the browser. If your Flash application is interactive, you can let the user start playing by clicking the button or performing some other task. In this case, setting the play property to false prevents the application from starting to play automatically. If this property is omitted, the default value is true.
Loop true | False Optionally, specify whether the Flash content repeats or stops indefinitely after it reaches the last frame. If this property is omitted, the default value is true.
Quality Low | Medium | High | Autolow | Autohigh | Best

Optionally, specify the anti-aliasing level that is used during application playback. Because anti-aliasing requires a faster processor to smooth each frame of the SWF file before it is rendered to the audience screen, you need to select a value based on whether you want to optimize the speed or the appearance of the image:

"Low" takes the playback speed over the appearance and never uses anti-aliasing.

"Autolow" takes precedence over speed, but also improves appearance as much as possible. When playback starts, anti-aliasing is turned off. If Flash Player detects that the processor can handle anti-aliasing, the feature is turned on.

"Autohigh" starts with the same emphasis on playback speed and appearance, but sacrifices appearance when necessary to ensure playback speed. When playback starts, anti-aliasing is turned on. If the actual frame rate drops below the specified frame frequency, anti-aliasing is turned off to improve playback speed. Use this setting to simulate the anti-aliasing command in Flash (View > Preview mode > Anti-aliasing).

"Medium" applies some anti-aliasing features, but does not smooth the bitmap. This setting produces an image quality higher than the "low" setting, but less than the image quality generated by the "high" setting.

High makes the appearance take precedence over playback speed, and it always applies anti-aliasing. If the SWF file does not contain animations, the bitmap is smoothed, and if the SWF file contains animations, the bitmap is not smoothed.

Best provides optimal display quality without regard to playback speed. All outputs are anti-aliased and all bitmaps are smoothed.

If you omit the quality property, the default value is high.

BgColor Hexadecimal RGB value Optionally, specify the background color of the application. Use this property to override the background color settings specified in the Flash SWF file. This property does not affect the background color of the HTML page.
Scale ShowAll | Noborder | Exactfit | Noscale

Optionally, when the width and height values are percentages, define how the application is placed in the browser window.

"ShowAll" causes the entire Flash content to appear in the specified area without distortion, while maintaining its original aspect ratio. The border may appear on either side of the application.

"Noborder" scales the Flash content to fill the specified area without distortion, which causes the application to maintain its original aspect ratio, but some clipping may occur.

"Exactfit" causes the entire Flash content to appear in the specified area, but does not attempt to maintain the original aspect ratio. Distortions may occur.

"Noscale" makes the Falsh content not scaled, the original scale

If this attribute is omitted (and the width and height values are percentages), then its default value is ShowAll.

Salign L | T: T | B | TL | TR | BL | Br

Optionally, specify the location of the scaled Flash SWF file within the area defined by the width and height settings. For more information about these conditions, see Scale Properties/Parameters.

L, R, T, and B align the application along the left, right, top, and bottom edges of the browser window respectively, and crop the remaining three sides as needed.

The TL and TR align the application with the upper-left and upper-right corners of the browser window respectively, and crop the bottom and remaining right or left edges as needed.

BL and BR let the application align with the lower-left and lower-right corners of the browser window, and crop the top and left edges as needed.

If this attribute is omitted, the Flash content is centered in the browser window.

Base Base directory or URL

Optionally, specify the base directory or URL that will be used to resolve all relative path statements in the Flash SWF file. This property is useful if the SWF file is saved in a different directory than your other files.

Menu true | False

Optionally, specify the type of menu that will be displayed when the audience right-clicks (Windows) or the Command-click (Macintosh) application area in the browser.

"True" displays the full menu, allowing the user to enhance or control playback using a variety of options.

"False" shows a menu that contains only the "About Macromedia Flash Player 6" option and the "Settings" option.

If this property is omitted, the default value is true.

Wmode Window | Opaque | Transparent

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

The "window" default value, always at the top level of the HTML.

"Opaque" allows the upper layer of Flash to have Web page occlusion.

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

allowscriptaccess always | never | samedomain

(optional) use allowscriptaccess to make The Flash application can communicate with the HTML page that hosts it. The

Always allows script operations to be performed at any time. The

Never prohibits all scripts from performing operations.

Samedomain allows script operations to be performed only when the Flash application is from the same domain as the HTML page.

If this property is omitted, the default value is samedomain .

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.