English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am using the following code to embed flash object within html which works in IE but doesn't work in firefox.








Thankyou.

2006-08-26 02:39:55 · 2 answers · asked by Manish 5 in Computers & Internet Programming & Design

sorry i mean within xhtml, if i use tag, the xhtml validator doesn't validate it.

2006-08-26 02:44:51 · update #1

2 answers

You need to use the tag instead.

2006-08-26 02:44:06 · answer #1 · answered by IT Pro 6 · 0 1

Adding and 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:

Copy the HTML code below and paste it into your HTML. codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myMovieName">



NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">




Edit the attributes of the tags for the movie.
Change the HEIGHT and WIDTH parameters to match the height and width of the movie dimensions or use percentage values, if desired.
Change "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.

2006-08-26 09:47:01 · answer #2 · answered by dewman_byju 4 · 0 1

fedest.com, questions and answers