[SWFObject] Standard Embed to SWFObject Converter

Steve Kamerman kamermans at teratechnologies.net
Tue Dec 5 08:35:17 PST 2006


2 major problems and 1 minor one:

First - this is not valid xhtml because the EMBED tag isn't closed.

Second - the 'quality' attribute of the EMBED is defined twice - this
throws an error and the second 'quality="high"' must be removed

Third (minor issue) - there is no '#version=x.x.x.x' at the end of the
codebase in the object tag, so the user's flash player will not be
checked for the right version.  This is not a big deal and will not
cause the script to crash.

 

I'm assuming this code was modified since it came from Flash - let me
know if it wasn't because it isn't valid xhtml and that would be a bug
in the Flash exporter.

I need to spend some time writing meaningful error messages so people
can tell what's wrong.

 

Oh - here's you corrected code:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800"
height="600"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab">

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

<param name="quality" value="high" />

<param name="bgcolor" value="#663333" />

<embed src="menu.swf" quality="high" bgcolor="#663333" width="800"
height="600" name="menu" align="middle" play="true" loop="false"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />

</object>

 

Steve Kamerman

________________________________

From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Tech Soap
Sent: Tuesday, December 05, 2006 11:23 AM
To: swfobject at lists.deconcept.com
Subject: Re: [SWFObject] Standard Embed to SWFObject Converter

 

Steve,

As an experiment I tried the following code on your generator and it
crashed.  Any ideas?

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800"
height="600"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab">
<param name="movie" value="menu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#663333" />
<embed src="menu.swf" quality="high" bgcolor="#663333" width="800"
height="600" name="menu" align="middle" play="true" loop="false"
quality="high" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>

 

Regards,

Paul

	 

	
________________________________


	From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Steve
Kamerman
	Sent: Monday, December 04, 2006 8:15 PM
	To: swfobject at lists.deconcept.com
	Subject: Re: [SWFObject] Standard Embed to SWFObject Converter

	> This is cool, especially for people that have to convert lots
of legacy code to swfObject.

	 

	Ya - I made it because I had 20+ blocks of old code to convert -
I suppose I could add a little functionality tonight (like the
flashvars).  Like you said - it's really quite easy.

	 

	> Personally, I'd like to see some sort of "advanced" config
area, where you could set things like the name of the div you wanted to
write into, or a whole bunch of inputs, check boxes / radio's for
setting params like wmode, color, flash version  etc.

	 

	My intent was to make a simple converter for people that don't
really "get it" - I recommend SWFObject all the time on experts-exchange
and the n00bs out there never seem to get it working :P, but I suppose
it would also be nice to have a SWFObject Graphical User
Interface/Generator so you don't always have to go back to the
documentation.  Hmmm...  Perhaps I'll grab a domain for the project and
throw it out there.  I just released some other software
(www.tera-wurfl.com <http://www.tera-wurfl.com/> ) and I'm not sure that
I'll have a lot of time for this project, but I'll think about it.

	 

	Thanks,

	Steve

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061205/9305e807/attachment-0005.htm>


More information about the Swfobject mailing list