Insert the parameters of Flash in DW

Source: Internet
Author: User
Tags html page insert variables range
Insert | Details in the dreamweaver after inserting Flash can also have a lot of control parameters, the point of the property panel on the lower right button, there will be parameters and value of the join. We are free to control,

The following excerpt from the Flash MX 2004 Help Document

Parameters and properties

The following markup 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 stated, all entries apply both to object tags and embed tags. Optional entries are also listed here. Internet Explorer recognizes the parameters used for the object tag, while Netscape recognizes the parameters for the embed tag. Properties can be used both for object tags and for embed tags. When customizing a template, you can replace the corresponding value with the template variables listed here. See Customizing HTML Publishing Templates.

Note: The properties and parameters listed in this section are deliberately displayed in lowercase letters to conform to the XHTML standard.

Devicefont Properties/Parameters

Value: TRUE | False
Template variables: $DE
Description
Optionally, for static text objects that do not have the Device Font option selected, specify whether the device font is still being drawn (if the operating system provides the desired font).

SRC attribute

Value: moviename.swf
Template variables: $MO
Description: Specifies the name of the SWF file to load. Applies only to embed.

Movie Parameters

Value: moviename.swf
Template variables: $MO
Description: Specifies the name of the SWF file to load. Applies only to object.

ClassID Property

Value: clsid:d27cdb6e-ae6d-11cf-96b8-444553540000
Description: Identifies the browser's ActiveX control. The value entered must be exactly the same as the above display. Applies only to object.

Width Property

Value: N or n%
Template variables: $WI
Description: Specifies the width of the application as a pixel value or as a percentage of the browser window.

Height property

Value: N or n%
Template variables: $HE
Description: Specifies the height of the application as a pixel value or as a percentage of the browser window.

Note: Because Flash applications are scalable, their quality will not degrade as long as the aspect ratio remains unchanged, regardless of the size of the playback. (for example, the aspect ratios for the following dimensions are 4:3:640 x 480 pixels, 240 pixels x and 180 pixels.) )

CodeBase Property

Value: active.macromedia.com/flash7/cabs/swflash.cab#version=7,0,0,0

Description: Identifies the location of the Flash Player ActiveX control so that the browser can download it automatically when the control is not installed. The value entered must be exactly the same as the above display. Applies only to object.

Pluginspage Property

Value: Www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash
Description: Identifies the location of the Flash Player plug-in so that the user can download it when the plugin is not already installed. The value entered must be exactly the same as the above display. Applies only to embed.

Swliveconnect Property

Value: TRUE | False
Description: (optional) Specifies whether the browser should start Java the first time the Flash Player is loaded. If this property is omitted, the default value is False. The Fscommand () function works if both JavaScript and Flash,java on the same page must be in a running state. However, if you run JavaScript just to detect the browser or for other purposes unrelated to the Fscommand () action, you can prevent Java startup by setting the Swliveconnect to False. When JavaScript and Flash are not used together, you can also force Java startup by explicitly setting the Swliveconnect property to True. Starting Java significantly increases the time required to start the SWF file, so you should set this tag to true only if necessary. Applies only to embed.

Use the Fscommand () action to start Java from a stand-alone show file.

Play Properties/Parameters

Value: TRUE | False
Template variables: $PL
Description: (optional) Specifies whether the application starts playing when it is loaded in the browser. If your Flash application is interactive, you can have 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 automatically. If this property is omitted, the default value is true.

Loop Properties/Parameters

Value: TRUE | False
Template variables: $LO
Description: (optional) Specify whether the Flash content is unlimited repeat playback or stop after it reaches the last frame. If this property is omitted, the default value is true.

Quality Properties/Parameters

Value: Low | Medium | High | Autolow | Autohigh | Best
Template variables: $QU
Description: Optionally specifies 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 makes playback speed take precedence over appearance, and never uses anti-aliasing.

"Autolow" gives priority to speed, but it also improves appearance as much as possible. Anti-aliasing is turned off when playback begins. If Flash Player detects that the processor can handle anti-aliasing, it opens the feature.

"Autohigh" starts with both playback speed and appearance, but sacrifices the appearance to ensure playback speed if necessary. Anti-aliasing is turned on when playback begins. If the actual frame frequency falls below the specified frame rate, 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, but does not smooth the bitmap. This setting generates an image quality that is higher than the "low" setting, but is 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 the bitmap is not smoothed if the SWF file contains animations.

Best provides the optimal display quality without regard to playback speed. All output is anti-aliasing, and all bitmaps are smoothed.

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

BgColor Properties/Parameters

Value: #RRGGBB (hexadecimal RGB value)
Template variables: $BG
Description: (optional) Specifies the background color of the application. Use this property to overwrite the background color settings specified in the Flash SWF file. This property does not affect the background color of the HTML page.

Scale Properties/Parameters

Value: ShowAll | Noborder | Exactfit
Template variables: $SC
Description: (optional) defines how the application is placed in the browser window when the width and height values are percentages.

The ShowAll (default) causes the entire Flash content to be displayed in the specified range without distortion, while maintaining its original aspect ratio. The border may appear on both sides of the application.

"Noborder" zooms in on the contents of the Flash to fill the specified area without distortion, which causes the application to maintain the original aspect ratio, but it is possible that some cropping will occur.

Exactfit makes the entire Flash content appear in the specified range, but does not attempt to maintain the original aspect ratio. may be distorted.

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

Align property

Value: Default | L | R | T | B
Template variables: $HA
Description: Specifies the align value of the object, embed, and IMG tags, and determines how to place the Flash SWF file in the browser window.

Default causes the application to be centered in the browser window, cropping the edge if the browser window is smaller than the application.

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

Salign parameters

Value: L | R | T | B | TL | TR | BL | Br
Template variables: $SA
Description: (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 Properties/Parameters.

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

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

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

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

Base Property

Value: Base directory or URL
Description: (optional) specifies the base directory or URL 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 Properties/Parameters

Value: TRUE | False
Template variables: $ME



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.