Flash HTML Tutorial - Embedding Flash movies in HTML web pages
Sponsored Links
Flash movies are placed inside HTML documents using a combination of <OBJECT> and <EMBED> tags.
The reason for this is that <EMBED> was developed by Netscape and works with Netscape 2.0 or higher. Later it was adopted by Internet Explorer. For greater browser compatibility it is advisable to also use both the I.E. specific <OBJECT> tag and the <EMBED> tag.
Further, the Embed tag must be placed inside the Object tag. The complete code is as follows:
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="http://active.macromedia.com
/flash2/cabs/swflash.cab#version=4,0,0,0"
WIDTH="200" HEIGHT="155">
<PARAM NAME="MOVIE" VALUE="movie_name.swf">
<PARAM NAME="QUALITY" VALUE="HIGH">
<PARAM NAME="PLAY" VALUE="TRUE">
<PARAM NAME="LOOP" VALUE="TRUE">
<PARAM NAME="BGCOLOR" VALUE="#FFFFFF">
<EMBED SRC="movie_name.swf" QUALITY="HIGH" BGCOLOR="#FFFFFF"
WIDTH="200" HEIGHT="155"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/
index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
Though, the usage of older browsers has declined (substantially!), you should include the <NOEMBED> tag to display alternate text or image for visitors who have not cared to use new browsers. Browsers supporting the Embed tag will recognize the NOEMBED and not display its contents, however, the older browsers will ignore the tag but display its contents. It is similar to the <NOSCRIPT> tag used for adding backward compatibility for client-side scripting languages.
Page contents:
Comments, questions, feedback... whatever!
Recent Articles
Recent Blog Posts
Popular Articles
- Hotmail Sign In page
- Create a Hotmail account - Instructions
- Create Gmail address
- Download and install Outlook Express
- Get your free Gmail address
- Outlook Express new version
- Create my own email address
- Browers for Windows list
- Get email address
- Color combinations for web sites and pages
- Create Yahoo ID
