Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Is OBJECT or EMBED displaying SWF

Reply
Thread Tools

Is OBJECT or EMBED displaying SWF

 
 
Andrew Poulos
Guest
Posts: n/a
 
      08-07-2006
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag.
How can I check which tag is actually displaying the SWF? I'm using CSS
on them and the style on the OBJECT affects the EMBED tag so I'm going
to use some code to correct it but I can't tell which tag is responsible
for the display.

Andrew Poulos
 
Reply With Quote
 
 
 
 
cwdjrxyz
Guest
Posts: n/a
 
      08-07-2006

Andrew Poulos wrote:
> With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag.
> How can I check which tag is actually displaying the SWF? I'm using CSS
> on them and the style on the OBJECT affects the EMBED tag so I'm going
> to use some code to correct it but I can't tell which tag is responsible
> for the display.


If you refer to the usual object-embed structure, that by the way is
invalid html because of the embed, the outer container is an ActiveX
object. This is easy to spot because of the very long special ActiveX
id, that is different for flash, WMP, Real etc. Usually ActiveX works
only for IE browsers and close relatives, although recent Opera
browsers seem to use some trick to play a WMP ActiveX only object even
though they are unlikely support ActiveX. However there are special
ActiveX plugins for Mozilla family browsers for a few formats such as
WMP, but few likely have these installed. If the ActiveX object is not
supported by the browser, then most browsers will take the invalid
embed path written within the ActiveX object, but it usually works,
because most browsers have not yet removed support for the invalid
embed tag.

If you are not sure what path is being taken, just remove the embed tag
and everything else following to and including the close embed tag. If
the page then works, you are supporting the ActiveX object. If the page
does not work, the viewing browser will not support the ActiveX object.
Some browsers will support both the ActiveX object and an embed path.
In this case, the ActiveX path is used when the embed path is within
the ActiveX object path.

Of course, even for flash, it is possible to avoid using embed by using
a special ordinary object, but it is a bit more complicated than for
the case of WMP audio or video.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problem with displaying swf file Anz HTML 1 06-27-2008 10:52 AM
Firefox displaying "download" next to swf redcrayon Firefox 0 02-24-2008 04:56 AM
embed a swf without setting the dimensions? Ciaran HTML 5 03-25-2007 02:12 PM
object to object -- embed instead code_wrong HTML 4 05-23-2006 10:05 PM
Displaying a SWF at it's original size without setting the dimensions Laphan ASP General 3 12-30-2004 05:31 PM



Advertisments