Detailed explanation of flash attributes of param and embed in html tags

黄舟
Release: 2017-07-03 14:20:42
Original
2144 people have browsed it

This article mainly introduces some attributes and their attribute values ​​related to flash in the param and embed tags.

First of all, we need to know that the param and embed tags appear alone, not in pairs. The following code is the general flash nested code:


<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>flash嵌套</title>
    </head>
    <body>
    <object width="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">
        <param name="movie" value="/media/v1/default_v1.1.swf"/>
        <param name="quality" value="high"/>
        <param name="wmode"value="transparent"/>
        <embed width="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>
Copy after login

Note: Unless otherwise specified, all attributes apply to both param tags and embed tags, and optional attributes are also listed here. Internet Explorer recognizes the attributes of the param tag, and Netscape recognizes the attributes of the embed tag.

srcxxx.swf Specify the name of the SWF file to be loaded. Applies to embed only. moviexxx.swfSpecify the name of the SWF file to load. Applies only to param. true | false (Optional) Specifies whether the application starts when it loads in the browser Play. If your Flash application is interactive, you can let the user start playback by clicking a button or performing some other task. In this case, setting the play property to false disables the application from automatically starting playback. If this property is omitted, the default value is true. looptrue | false (Optional) Specifies whether the Flash content repeats infinitely or stops after it reaches the last frame. If this property is omitted, the default value is true. qualitylow | medium | high | autolow | autohigh | bestbgcolorHex RGB value (Optional) Specifies the background color of the application. Use this property to override the background color setting specified in the Flash SWF file. This property does not affect the background color of the HTML page. scaleshowall | noborder | exactfit | noscale
Attribute Attribute value Description
devicefont true | false (Optional) For statictext# where the Device Font option is not selected ##Object, specifies whether to still use the device font for drawing (if the required font is provided by the operating system).
autoplay
(Optional) Specifies to use during application playback level of anti-aliasing. Because anti-aliasing requires a faster processor to smooth each frame of the SWF file before rendering them to the viewer screen, you need to choose a value depending on whether you want to optimize for speed or appearance:

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

"Autolow" prioritizes speed, but will also improve appearance wherever possible. When playback begins, anti-aliasing is turned off. Flash Player turns on anti-aliasing if it detects that the processor can handle it.

"Autohigh" focuses on both playback speed and appearance at the beginning, but will sacrifice appearance to ensure playback speed when necessary. When playback starts, anti-aliasing is on. If the actual frame rate drops below the specified frame rate, anti-aliasing is turned off to increase playback speed. Use this setting to emulate the Anti-Aliasing command in Flash (View > Preview Mode > Anti-Aliasing).

Medium applies some anti-aliasing but does not smooth the bitmap. This setting produces a higher quality image than the Low setting, but lower quality than the High setting.

"High" prioritizes appearance over playback speed, which always applies anti-aliasing. If the SWF file does not contain animation, the bitmap is smoothed; if the SWF file contains animation, the bitmap is not smoothed.

"Best" provides the best display quality regardless of playback speed. All output is anti-aliased and all bitmaps are smoothed.

If the quality attribute is omitted, its default value is high.

(optional) When the width and height values ​​are percentages, define the application How the program is placed in the browser window.

Showall causes the entire Flash content to be displayed in the specified area without distortion, while maintaining its original aspect ratio. Borders may appear on the sides of the application.

"Noborder" scales the Flash content to fill the specified area without distortion. It keeps the application's original aspect ratio, but may cause 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.

"noscale" makes the actual Falsh content not scaled to the original scale

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

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

(Optional) Specify the scaling The position of the Flash SWF file within the area defined by the width and height settings. For more information about these conditions, see the scale attribute/parameter.

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

TL and TR align the application to the upper-left and upper-right corners of the browser window, respectively, cropping the bottom and remaining right or left edges as appropriate.

BL and BR align the application to the lower-left and lower-right corners of the browser window, respectively, cropping the top edge and remaining right or left edges as appropriate.

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

base Base directory or URL

(optional) specifies the path to use for parsing all relative files in Flash SWF files The base directory or URL for the path statement. This property is useful if the SWF file is saved in a different directory than your other files.

menu true | false

(Optional) Specifies when a viewer right-clicks in the browser (Windows) Or the type of menu that appears when you Command-click (Macintosh) an application area.

"true" displays a full menu, allowing the user to enhance or control playback with various options.

"false" displays a menu containing only the "About Macromedia Flash Player 6" option and the "Settings" option.

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

wmode window | opaque | transparent

(Optional) Enables you to use transparency in Internet Explorer 4.0 Flash content, absolute positioning and hierarchical display functions. This tag/property is only valid on Windows with the Flash Player ActiveX control.

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

"opaque" allows the upper layer of Flash to be blocked by the web page.

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

allowscriptaccess always | never | samedomain

(Optional) Use allowscriptaccess to enable Flash applications to host it Communicate with HTML pages.

always allows script operations to be executed at any time.

never disables all script operations.

samedomain Allows scripting only if the Flash application is from the same domain as the HTML page.

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

The above is the detailed content of Detailed explanation of flash attributes of param and embed in html tags. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Previous article:Sharing the use of html tags and Next article:Definition of Object and param attributes in html
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template