/    Sign up×
Community /Pin to ProfileBookmark

XHTML flash embed compliance problem

Can anyone tell me the proper way to embed a flash movie in an xhtml 1.0 transitional page so that it still meets w3c xhtml compliance while also loading in netscape or mozilla? My page loads great in IE, opera, and safari but it won’t load in those other 2. Here’s an example of what my code looks like now:

[CODE]
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0″ width=”100″ height=”100″>
<param name=”movie” value=”flash/movie.swf” />
<param name=”quality” value=”high” />
<param name=”bgcolor” value=”#000000″ />
</object>
[/CODE]

?

to post a comment
HTML

12 Comments(s)

Copy linkTweet thisAlerts:
@johnevaJan 13.2006 — This must come up quite often then I have only been using the forum for a week now and this was the first post I made too.

And it was LilCrazyFuzzy that answered it for me too. ?
Copy linkTweet thisAlerts:
@Brad_ArmitageauthorJan 13.2006 — Ok, so I tried the suggestion on this site:

http://www.alistapart.com/articles/flashsatay/

It worked, except one question it didn't answer was if I don't want to embed a small flash file on my page and include the:

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0"

Is there another way to prompt the user to download the latest version of the flash player?
Copy linkTweet thisAlerts:
@johnevaJan 13.2006 — It still works with that bit left in.

The most important bit to get it to work is to get rid of the embed tag and insert it data attribute to the object tag.
Copy linkTweet thisAlerts:
@Brad_ArmitageauthorJan 13.2006 — It didn't work in firefox :rolleyes:
Copy linkTweet thisAlerts:
@johnevaJan 13.2006 — Oh right.

Dont know then mate I never though of the problem you did about it prompting to download the player till you mentioned it.

One of the other will probley be able to tell ya.
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYJan 13.2006 — ok so what is your whole code now?
Copy linkTweet thisAlerts:
@Brad_ArmitageauthorJan 13.2006 — [code=html]
<object type="application/x-shockwave-flash" data="flash/movie.swf" width="100" height="100">
<param name="movie" value="flash/movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
[/code]
Copy linkTweet thisAlerts:
@zingmatterJan 13.2006 — I use this method:
<i>
</i>&lt;object type="application/x-shockwave-flash"
data="c.swf?path=horiz_bg.swf"
width="604" height="225"&gt;
&lt;param name="movie"
value="c.swf?path=horiz_bg.swf" /&gt;
&lt;img src="alternative_image.jpg"
width="603" height="225" alt="" /&gt;
&lt;/object&gt;

Where "c.swf" is a blank movie which the main movie "horiz_bg.swf" loaded into it. To do that just have a single frame movie with the action

_root.loadMovie(_root.path, 0);

placed in this frame.

This works on Firefox.
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYJan 13.2006 — yep, that's the ALA article method
Copy linkTweet thisAlerts:
@zingmatterJan 13.2006 — ALA are just great aren't they
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYJan 13.2006 — indeed ?
×

Success!

Help @Brad_Armitage spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...