Insert Flash on Web page

Source: Internet
Author: User

Code:

<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http://download.macromedia.com/pub/ shockwave/cabs/flash/swflash.cab#version=6,0,40,0 "
Width= "550" height= ">"
<param value= "myflashmovie.swf" >
<param value=high>
<param value= #FFFFFF >
<embed src= "/support/flash/ts/documents/myflashmovie.swf" Quality=high bgcolor= #FFFFFF WIDTH= "550" HEIGHT= "400"
Name= "Mymoviename" align= "" Type= "Application/x-shockwave-flash"
Pluginspage= "Http://www.macromedia.com/go/getflashplayer" >
</EMBED>
</OBJECT>


First, required attributes: 
· CLASSID-Set the browser's ActiveX control for the OBJECT tag only.
· CODEBASE-Set the location of the Flash ActiveX control, so if the browser is not installed, you can download the installation automatically. Only for object tags.
· WIDTH-Specify the width of the flash movie in percent or pixels.
· HEIGHT-Specify the height of the flash movie in percent or pixels.
· SRC-Specify the movie's. For embed labels only.
· Pluginspage-Set the location of the Flash plugin, so if the browser is not installed, you can download the installation automatically. For embed labels only.
· MOVIE-Specify the movie's. Only for object tags.

second, optional attributes and available values: 
ID-Set the variable name for the reference to the script code. For object only.
datastore-Set the variable name for a reference to the script code (such as JavaScript). For embed only.
· Swliveconnect-(TRUE or FALSE) Specifies whether Java is enabled when Flash Player downloads for the first time. If some attributes are omitted, the default value is False. You must use Fscommand to work with JavaScript and Flash,java on the same page.
· PLAY-(TRUE or FALSE) specifies whether the Flash movie will play automatically after the download is complete, or true if this attribute is omitted.
· LOOP-(TRUE or FALSE) specifies whether to stop or resume looping after the last frame of the movie is played, or true if this attribute is omitted.
· MENU-(True or false)
· True displays all menus, allowing users to zoom in, zoom out, and so on to control movie playback and other actions.
· False displays only the settings options and the menu about flash.
· Quality-(Low, High, Autolow, Autohigh, best)
· The low speed is superior to aesthetics and does not apply anti-aliasing.
· Autolow is just beginning to focus on speed, but when needed, it improves aesthetics at any time.
· Autohigh at the same time focus on the playback speed and aesthetics, but the need to sacrifice beauty to ensure the playback speed.
· Medium applies some anti-aliasing instead of smoothing bitmaps. It is higher quality than the low setting and below the high setting.
· High aesthetics is better than playback speed, and anti-aliasing has been applied. If the movie does not contain animations, the bitmap is smoothed, and if the movie contains animations, the bitmap will not be smoothed.
· Best provides the highest display quality without regard to playback speed. All outputs have anti-aliasing applied and all bitmaps are smoothed.
· Scale-(ShowAll, Noborder, Exactfit)
· The Default show all movie is displayed within the specified area, but the original scale is maintained. A border will appear on both sides of the movie.
· No boder shrinks the movie to fit the specified area, keeping the movie not distorted, but some of the videos will probably be cropped. Keep the original proportions of the film however.
· Exact Fit causes the entire movie to be displayed in the specified area, and the movie is likely to distort and not maintain the original proportions.
· ALIGN-(L, T, R, b)
• The default is centered, and the edges are cropped when the browser window is smaller than the movie.
· The Left,right,top,bottom is aligned along the edge of the browser according to the corresponding settings. If necessary, the other three sides will be cropped.
· Salign-(L, T, R, B, TL, TR, bl, BR)
· L,r,t,b
· Tl,tr
· BL,BR
· WMODE-(window, opaque, transparent) sets the window Mode property of the Flash movie, specifying the transparency, stacking, and placement of flash in the browser.
· The window movie plays within its own rectangular window in the browser.
· The Opaque movie hides all the content behind it.
· Transparent makes flash movies transparent, showing the contents of pages behind transparent movies. This will degrade the performance of the animation. And this property is not available in all browsers.
· BGCOLOR-(#RRGGBB, hexadecimal RGB value.) Specifies the background color of the movie. Use this property to override the background color set in Flash.
· BASE-Set the base directory or URL to resolve the relative path in Flash. Similar to <base> tags in web pages.
· Flashvarspassing variables to Flash Player requires Flash PLAYER6 and later versions.
• Pass the root level variable to the movie. The format of the string is the Name=value set separated by "&".
• The browser supports 64kB size string lengths.
• For more information about Flashvars, please see the documentation.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Insert Flash on Web page

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.