Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- Flash IE Firefox Problems


rocknbil - 6:16 pm on Nov 4, 2009 (gmt 0)


Welcome aboard xspixels, the URL will get nixed, see TOS [webmasterworld.com]. But the code you posted is a good starting point.

I am also not using dream weaver

Someone has, or it was originally generated in DW, it has all the DW-generated comments and Javascript - but the point is moot.

The immediate solution looks pretty easy, but please take a moment to review the comments that follow. Note the difference here:

<param name="movie" value="motion_graphics_reel_v004.swf" />

.....
<embed src="video/motion_graphics_reel_v004.swf"

Moz (FireFox) browsers use the embed element, IE uses object. Obviously the movie param is pointing to a different, and probably wrong, location for the .swf

However -Please note: This is an "old school" embedding method, and is also invalid HTML. The embed element is invalid inside the object element. If you move the <embed> outside <object>, it will sometimes display two instances of the Flash so it is done this way to "trick" the two browsers into displaying only one while supporting both. I can't believe DW/Flash still publish this code.

A much better way is to use SWFObject [code.google.com]. The way it works is you have a "placeholder" image - a screen capture of the Flash - and if Javascript/Flash are supported, the actual .swf is written to the div/p containing the placeholder. This addresses accessibility and cross browser issues with valid html, and is really very easy to implement. As a hand coder, you should be able to pick it right up.

See post #6 [webmasterworld.com] for a simple tutorial example.


Thread source:: http://www.webmasterworld.com/flash/4018721.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com