Sunday, 27 May 2012 08:18 AM

Untitled Document
Untitled Document

Get your regular dose of "A Moment Of Sharing" and FREE gifts NOW, because you deserve...

Email:
Name:


WWW IMC

Contact Us
Manifesto
About Nelson
A Moment Of Sharing
Blog
FREE Website Tools
Resource Articles
Shop At ClickBank
Link With Us!
Ethiclinks
Gotlinks
Linkdash
Linkslister
Telalinks
Interlink Exchange
LinksNow
Receive Links
Linknami
free link exchange
wireless bluetooth headsets shop best deal
Diet Plan
Free poker tips
Gothic graver dark rave cyber industrial emo
Sactown USA


You Are Here: Home > Resource Articles > Site Development > Article

 

Untitled Document

 Top Picks for Sunday, 27 May 2012

Macromedia Flash OBJECT And EMBED Tag Syntax

 

Introduction

 

An HTML page is required to correctly display a Macromedia Flash movie in a browser. This HTML page must contain tags that reference the actual Macromedia Flash movie file to be opened and played. These tags are the OBJECT and EMBED tags. The OBJECT tag is used by Internet Explorer on Windows and the EMBED is used by Netscape Navigator (Macintosh and Windows) and Internet Explorer (Macintosh) to direct the browser to load the Macromedia Flash Player. Internet Explorer on Windows uses an ActiveX control to play Macromedia Flash content while all other browser and platform combinations use the Netscape plugin technology to play Macromedia Flash content. This explains the need for two tags.

 

Note: Hand coding HTML pages with OBJECT and EMBED tags is not necessary when using Macromedia Flash 4 or later. The Publish feature present in those versions of Macromedia Flash will automatically create an HTML document that contains the required HTML tags for browsers to access a Flash movie on the web. There are also several different HTML publishing templates to choose from. To use the Publish feature choose File > Publish Settings. For more information on using the feature see the Using Flash manual or online help.

 

Also note: Dreamweaver, Macromedia's HTML authoring tool, can easily embed a SWF movie into an HTML document. Dreamweaver also provides more control over layout and design of the page that contains the Macromedia Flash movie than the Publish feature in Flash. For more information on Dreamweaver or to download a free trial version visit the Dreamweaver product page.

 

Adding <OBJECT> and <EMBED> tags manually

 

It's simple to create the tags required to display a Flash movie in a browser.

 

To add OBJECT and EMBED tags manually:

 

1. Copy the HTML code below and paste it into your HTML.

 

<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="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor 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>

 

2. Edit the attributes of the tags for the movie by 1) changing the HEIGHT and WIDTH parameters to match the height and width of the movie dimensions or use percentage values, if desired, and 2) changing "moviename.swf" where it appears in the OBJECT and EMBED tags to the name of movie to be played.

 

Why use these all these HTML tags? What do they do?

 

The OBJECT tag is for Internet Explorer 3.0 or later on Windows 9x/2000/NT/ME/XP platforms or any browser that supports the use of the Flash ActiveX control. The "classid" must appear exactly as it does in this example. The "codebase" attribute must also appear exactly as it does in this example; it tells the browser where to find Flash Player for automatic download. Internet Explorer 3.0 or later on Windows 9x/2000/NT/ME/XP will prompt the user with a dialog asking if they would like to auto-install the Flash Player if it's not already installed. This process can occur without the user having to restart the browser.

 

The EMBED tag is for Netscape Navigator 2.0 or later, or browsers that support the use of the Netscape-compatible plugin version of Flash Player. The "pluginspage" attribute tells the browser where to direct the user to find Flash Player for download if the Player is not already installed. The user would then need to download and run the installer and restart their browser.

 

To ensure that the most browsers will play your Flash Player movies, you should place the EMBED tag nested within the OBJECT tag as shown in the above example. ActiveX-enabled browsers will "ignore" the EMBED tag inside the OBJECT tag. Netscape and Microsoft browsers using the Flash Plugin will not recognize the OBJECT tag and will read only the EMBED tag.

 

Note: Some visual HTML editors such as Dreamweaver support the insertion of ActiveX objects or Netscape plugin content. Except when using Dreamweaver, it may be necessary to interpret the HTML code above to determine what to enter and where into your editor's dialog box or configuration prompts. You may also have to edit the HTML source code directly to achieve the nested OBJECT/EMBED tag structure described above. Although some editors allow you to preview the content after you've placed it, test your pages in Internet Explorer or Netscape Navigator to see them as your users will when they are downloaded. Flash 4, Flash 5, and Flash MX users can easily obtain the correct code by using Flash's Publish feature, and opening this Flash-created HTML page in an HTML editor.

 

This code is the minimum required HTML to provide Flash Player content in your web pages. There are other attributes that you can use in your OBJECT and EMBED tags to help control your movie. To learn more about these review Flash OBJECT and EMBED tag attributes (TechNote 12701).

 

Flash TechNote taken from Macromedia.com.

 

 

Comment
Tell A Friend
Print
Bookmark
Main Section

 

 


Warning: ./cache is not writeable. Make sure you've set the correct relative or absolute path, and that the location is server-writable. in /home/inter154/public_html/simplepie.inc on line 1780

Hot Recommendations
 

Internet Mastery Center Blog

The importance of having a social media marketing plan.
Do you already have a social media marketing plan in place? If you aren’t utilizing social media in your marketing plan, then you’re really missing out! Within 6 months of adding social media to my marketing, I had tripled leads and income, which isn’t something to be sneezed at. The beautiful thing about social media [...]

Red Light/Green Light TRAFFIC…
Russell Brunson has been conducting a series of ‘live’ affiliate marketing training videos that are nothing short of awesome! This Friday he’s going to reveal why it’s so easy get traffic for SUPER competitive keywords using his “Red Light/Green Light” SEO strategy. DON’T MISS IT…you’ll only be billed $1 for your registration, after which Affiliate [...]

Internet Marketing For Busy Moms (And Dads Too!)
You probably have heard stories of online rags-to-riches. You’ve seen ordinary people becoming highly respected marketing experts. You may even know of a friend who was once a marketing ‘nobody’ now having everyone calling him/her a ‘guru’. Question is: when will it be your turn? While your ‘guru’ friends seem to have a knack for [...]

13% conversion rate is ho-hum normal to some guys…
By Internet Marketing standards, a 1% conversion rate is pretty normal. You are kicking butt if you can hit 2% or 3%. But when Simon Hodgkinson and Jeremy Gislason start to hit 13% and up to 72%+ conversions, I seriously wonder whether they are playing a fair game… Well, you can find out today and [...]

All-new autoresponder with NO monthly fees!
arpReach has completed remaking its brand name from what is formerly known as Autoresponse Plus to bring you new features and improvement to its e-mailing service. What’s more, arpReach has NO monthly fees. It’s only a one-time investment for setting up as many e-mail lists as you like! Read the Top 10 Changes made to [...]

Thought Of The Moment

 

Untitled Document

Copyright © Internet Mastery Center. All rights reserved. | Site Map | Anti-Spam Policy | Terms Of Use | Privacy Policy