|
| |
|
|
||
Is your Flash, not validating to W3C standards? - 01 August 2008
Maybe I can help, or at the least show an example of how I solved this Problem recently <OBJECT id="flash" name="flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="600" HEIGHT="450"> <param NAME="movie" VALUE="http://flash.movaya.com/client/600450.swf ?sId=IEvyUBrD64A%3D&acId=3&tgId=3&ibg=191919 &obg=262626&sb=999999&line=CCCCCC&words=FFFFFF&navigation=666666&priceTxt=8B8064&optw1=000000 &optw2=CC0000&optw3=0066CC&optw4=977735&btnbg=1B1B1B&btntxt=FFFFFF" > <param NAME=quality VALUE=high><param NAME=bgcolor VALUE=#FFFFFF> <EMBED name="mm" src="http://flash.movaya.com/client/600450.swf ?sId=IEvyUBrD64A%3D&acId=3&tgId=3&ibg=191919 &obg=262626&sb=999999&line=CCCCCC&words=FFFFFF&navigation=666666&priceTxt=8B8064&optw1=000000 &optw2=CC0000&optw3=0066CC&optw4=977735&btnbg=1B1B1B&btntxt=FFFFFF" quality=high bgcolor=#FFFFFF WIDTH="600" HEIGHT="450" NAME="store2" ALIGN="" TYPE="application/x-shockwave-flash" allowScriptAccess="sameDomain" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" ></EMBED> </OBJECT>
As you know well this makes use of both the Object and Embed Tags. It essentially is passing the same flash file and set of parameters twice, to fit the needs of many browsers, in what is their native and preferred use of Flash is either <object> or <Embed>
XHTML won't validate with Embed, also it doesn't like Capital letters for tag's names, and & and = symbols in code, so you have to use escapes, and a few others, but not so important right now. type="application/x-shockwave-flash"
The links to the Macromedia site to get the latest flashplayer are worth saving ("http://www.macromedia.com/go/getflashplayer"). <object id="flash" name="flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="450"> <param name="movie" value="http://flash.movaya.com/client/600450.swf ?sId=IEvyUBrD64A%3D&acId=3&tgId=3&ibg=191919&obg=262626&sb=999999&line=CCCCCC &words=FFFFFF&navigation=666666&priceTxt=8B8064&optw1=000000&optw2=CC0000 &optw3=0066CC&optw4=977735&btnbg=1B1B1B&btntxt=FFFFFF" > <param name=quality value=high><param name=bgcolor value=#FFFFFF> type="application/x-shockwave-flash" </object>
Next up you need to insert that *type* tag and it's data, replacing the existing classid. &
Then you have to make sure there is an "/" in any self closing tag, with a space between the name and the tag itself, like below, this goes for all self closing tags. The most common examples would be <br/> rather than <br /> In this case though it's just the below we have to worry about; <param />
In the end you end up with code that looks a little like the below. This is actually what I have in my Mobile Games Store (Powered by Movaya) Notice
If you like what I've done, and If i've helped you in anyway, and wish to use it, all I ask, is that you link to this Page, to credit me. Oh and Please none of this "nofollow" link stuff, I do realise the difference. Below is a suggested Link you can use, with the Code. Other Examples
Many Big names, allow you to make use of flash, automated out, and it won't pass Validation because of a few reasons, some are using embed, some are using symbols that aren't escaped to be ok in the UTF-8 encoding. |
||
|
We started in Mobile Games Industry, Stepped up by adding Facebook (Web Apps) to the Profile,
and now are doing PC games (Latest in house Game engines).
From Code suggestions from our varied work,
To general news in and around the games industry.
Get Games Downloaded Directly to your phone, just visit our Games store, and view them there, browse for any you like.
Game Backgrounds, Wallpapers and Applications are also available, they go straight to your phone Bill, and work on nearly any phone.
Copyright © 2007 - 2008 Infinite Pixel Studios Ltd. All Rights Reserved.
|