...

View Full Version : Validated for FF need hack for IE? (Flash)



Reta
01-02-2010, 10:23 AM
Hello fellow coders,

I have managed to get a site fully validated but when visiting browsershots I was highly disappointed with the results.

I now seem to have a problem with the flash player. After taking off embed and using objects (for validation purposes) etc. The flash player does not work with IE 8 along with some others.

You can find the latest shots here (http://browsershots.org/?url=http://www.reggaetonbeats.com/)

The source can be view at validator.w3.org (http://validator.w3.org/check?uri=http://www.reggaetonbeats.com/&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator/1.654)

Did I code the flash wrong?

Please help

Reta

abduraooft
01-02-2010, 11:33 AM
Your code to embed your swf is incomplete. I'd recommend you to adopt sfwobject (http://code.google.com/p/swfobject/) method.

Reta
01-02-2010, 06:05 PM
Is it possible to complete the code and not have to adapt a new method?

Here is the current code


<div id="MP3PlayerVIP">
<object data="http://www.soundclick.com/widgets/creatives/mp3PlayerVIP.swf" width="380" height="170">
<param name="flashvars" value="bandid=105175&amp;ext=1" />
name="MP3PlayerVIP"
type="application/x-shockwave-flash"
wmode="transparent"
<param name="movie" value="http://www.soundclick.com/widgets/creatives/mp3PlayerVIP.swf" /></object>


Would greatly appreciate it

Reta
01-02-2010, 06:20 PM
I think I fixed it for the most part. It now works with IE 8



<object type="application/x-shockwave-flash" data="http://www.soundclick.com/widgets/creatives/mp3PlayerVIP.swf" width="380" height="170">
<param name="flashvars" value="bandid=105175&amp;ext=1" />
<param name="movie" value="http://www.soundclick.com/widgets/creatives/mp3PlayerVIP.swf" />
<param name"wmode" value="transparent" />
</object>

Reta
01-02-2010, 06:35 PM
I want to also put a message for browsers that do not have flash enabled "This website requires flash etc" or something along those lines. Does anyone know how to go about accomplishing this?

Example: http://www.planetpayment.com/noJavaScript/

VIPStephan
01-02-2010, 07:51 PM
I want to also put a message for browsers that do not have flash enabled "This website requires flash etc" or something along those lines. Does anyone know how to go about accomplishing this?

I’ll tell you right away: That is a bad approach to build websites. These messages you see frequently are actually “alternative content” a feature which has been developed to display some content that still makes it possible to get the subject of the site even if Flash isn’t supported. A message like “flash is required” isn’t helping anyone, it’s rather imposing your requirements on the visitors which is bad behavior in a free medium like the internet. And don’t assume that everybody has the possibility to install Flash at all.

Sooooo, please make yourself familiar with progressive enhancement (http://accessites.org/site/2007/02/graceful-degradation-progressive-enhancement/) (and its older conceptional counterpart “graceful degradation”) and please do adapt to SWFObject (http://code.google.com/p/swfobject/). If you have a music player that relies on Flash then it’s OK to not have a music player if people don’t have Flash, as long as they still get the message of your site. The music player isn’t an essential part for the understanding of the site so just don’t display alternative content (or even worse, a “required” message) at all, just let it degrade gracefully (i. e. have a website without player).

Reta
01-02-2010, 08:29 PM
I’ll tell you right away: That is a bad approach to build websites. These messages you see frequently are actually “alternative content” a feature which has been developed to display some content that still makes it possible to get the subject of the site even if Flash isn’t supported. A message like “flash is required” isn’t helping anyone, it’s rather imposing your requirements on the visitors which is bad behavior in a free medium like the internet. And don’t assume that everybody has the possibility to install Flash at all.

Sooooo, please make yourself familiar with progressive enhancement (http://accessites.org/site/2007/02/graceful-degradation-progressive-enhancement/) (and its older conceptional counterpart “graceful degradation”) and please do adapt to SWFObject (http://code.google.com/p/swfobject/). If you have a music player that relies on Flash then it’s OK to not have a music player if people don’t have Flash, as long as they still get the message of your site. The music player isn’t an essential part for the understanding of the site so just don’t display alternative content (or even worse, a “required” message) at all, just let it degrade gracefully (i. e. have a website without player).

The site actually relies on the flash player. I am working on adding an alternative way to listening to the music without flash. Following your advice I created a replacement image for the flash instead.

like so: noflash (http://api.browsershots.org/png/original/67/6703041c43426cb37721bbd4b4154ba1.png)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum