HTML Insert SWF

Source: Internet
Author: User

1. Insert transparent Flash Code

<object classid= "clsid27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http://download.macromedia.com/pub/ shockwave/cabs/flash/swflash.cab#version=6,0,29,0 "width=" 373 "height=" 166 "align=" center "><param name=" Movie "value=" images/move.swf "><param name=" quality "value=" High "><param name=" wmode "value=" Transparent "> <!--here code can make flash background transparent--><embed src=" images/move.swf "width=" 373 "height=" 166 "align=" center "Quality=" High "pluginspage=" http://www.macromedia.com/go/getflashplayer ";;; Type= "Application/x-shockwave-flash" ></embed></object>

2. Transparent Flash Overlay Code

1234567 <embed style= "left:0px; Position:absolute; top:0px; Absolute: "  align=right  src=http: // Ysxiong.anyp.cn/pagelayout/userdataa/data53/usid200403062012220031/articles/image  s/040917060055890.swf width=1000 height=606 type=application/x-shockwave-flash  wmode= "Transparent"  quality= " High "  ;; ></embed>

  

3. Detailed parameter Insertion

12345678910111213141516171819202122 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="468" height="60"><param name=movie value="*.swf"><param name=quality value=High><param name="_cx" value="12383"><param name="_cy" value="1588"><param name="FlashVars" value><param name="Src" ref value="*.swf"><param name="WMode" value="Window"><param name="Play" value="-1"><param name="Loop" value="-1"><param name="SAlign" value><param name="Menu" value="-1"><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><param name="MovieData" value><embed src="你的flash地址" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed></object>

  

4. Detailed Parameters:

Devicefont Properties/Parameters

Value: TRUE | False
Template variable: $DE
Description
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 attribute

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

Movie Parameters

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

ClassID Property

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

Width Property

Value: N or n%
Template variable: $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 variable: $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 constant, regardless of the size. (for example, the aspect ratios of the following dimensions are 4:3:640 x 480 pixels, x 240 pixels, and x 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 already installed. The value you enter must be exactly the same as shown above. Applies to object only.

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 if the plugin is not already installed. The value you enter must be exactly the same as shown above. Applies to embed only.

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 must be running on the same page. However, if you are running JavaScript just to detect the browser or for other purposes unrelated to the Fscommand () action, you can prevent Java from booting by setting Swliveconnect to False. When you are not using JavaScript with Flash, you can also force Java to start by explicitly setting the Swliveconnect property to True. Starting Java significantly increases the time it takes to start the SWF file, so you should set this flag to true only if necessary. Applies to embed only.

Use the Fscommand () action to start Java from a separate projection file.

Play Properties/Parameters

Value: TRUE | False
Template variable: $PL
Description: (optional) 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 Properties/Parameters

Value: TRUE | False
Template variable: $LO
Description: (optional) Specifies 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 Properties/Parameters

Value: Low | Medium | High | Autolow | Autohigh | Best
Template variable: $QU
Description: Optionally, specify the level of anti-aliasing 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 Properties/Parameters

Value: #RRGGBB (hexadecimal RGB value)
Template variable: $BG
Description: (optional) Specifies 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 Properties/Parameters

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

"ShowAll" (the default) causes the entire Flash content to be displayed 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.

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

Align property

Value: Default | M T: T | B
Template variable: $HA
Description: Specifies the align value of the object, embed, and IMG tags, and determines how the Flash SWF file is placed within 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 edge is cropped.

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.

Salign parameters

Value: L | T: T | B | TL | TR | BL | BR
Template variable: $SA
Description: (optional) Specifies 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 Property

Value: Base directory or URL
Description: 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 Properties/Parameters

Value: TRUE | False
Template variable: $ME
Description: 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 Properties/Parameters

Value: Window | Opaque | Transparent
Template variable: $WM
Description: (optional) enables you to use transparent Flash content, absolute positioning, and hierarchical display functionality in Internet Explorer 4.0. This tag/attribute is only valid in Windows with the Flash Player ActiveX control.

Window plays the application on a Web page with its own rectangular window. window indicates that the Flash application has no interaction with the HTML layer and is always at the top level.

"Opaque" causes the application to hide everything that is behind it on the page.

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

Both "Opaque windowless" and "Transparent windowless" can interact with the HTML layer and allow the layer above the SWF file to obscure the application. The difference between the two options is that "Transparent" allows transparency, so if a portion of the SWF file is transparent, the HTML layer underneath the SWF file can be displayed through that section.

If this property is omitted, the default value is Window. Applies to object only.

allowScriptAccess Properties/Parameters

Value: Always | Never | Samedomain
Description: Use allowScriptAccess to enable a 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 HTML page permissions, which may differ from the permissions of the Flash application. This has an important relationship with cross-domain security.

Always allows script operations to be performed at any time.

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.

The default values used by all HTML publishing templates are samedomain.

HTML Insert SWF

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.