Log in

View Full Version : Resolved SWF Object 2.0



bluewalrus
01-18-2009, 05:53 PM
I don't know if i should put this here or in the Javascript forum but I figure here is more appropriate since it's about the flash end result....

What's better about using the SWFObject 2.0 then the code that flash outputs itself are there any draw backs? Is CS4 outputting with this method or with the same code it's outputted with in the past?....


<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '550',
'height', '400',
'src', 'final',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'final',
'bgcolor', '#ffffff',
'name', 'final',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'final',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="final" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="final.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="final.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="final" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

</noscript>

Medyman
01-18-2009, 06:52 PM
I wouldn't say one method is better than the other. I usually use SWF Object because I understand it. With CS4, Adobe is outputting HTML with SWFObject 2.0.

bluewalrus
01-18-2009, 08:20 PM
Oo thanks. Are there some features that make each one better or is it more of the coders preference?

Medyman
01-19-2009, 04:25 AM
It's 80% preference. There are benefits to some ways. Some scripts are cross-browser. Some aren't. Some get rid of IE's click to activate thing. Some don't. Some display alternate content. Some don't.

SWF Object 2.0 does all three. Plus, it's very extensible as far as adding Flashvars and the like...

punstc
01-24-2009, 08:54 PM
Swf Object is also valid for W3C for those who want compliant code. what CS3 and older spit out arent.

bluewalrus
01-25-2009, 12:28 AM
There are others that are validate that aren't swf object ...


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="950" height="120">
<param name="movie" value="blue.swf"/>
<param name="wmode" value="transparent"/>
<param name="topbanner" value="blue.swf"/>

<!--[if IE]>
FAIL (Your Browser Doesn't support Flash 8) <a title="Flash Downloads" style="text-decoration:underline;" href="http://www.macromedia.com/go/getflashplayer">Get or upgrade the Flash Player</a>.
<![endif]-->
<!--[if !IE]> <-->
<object type="application/x-shockwave-flash" data="blue.swf" width="950" height="120">
<param name="topbanner" value="blue.swf"/><param name="wmode" value="transparent" />
FAIL (Your Browser Doesn't support Flash 8) <a title="Flash Downloads" style="text-decoration:underline;" href="http://www.macromedia.com/go/getflashplayer">Get or upgrade the Flash Player</a>.</object>
<!--> <![endif]-->
</object>

punstc
01-26-2009, 03:20 AM
Of course, I was just pointing out that swf object since its one of the most popular. I believe I read something somewhere before cs4 was out that talked about integrating swf object from the actual publish since its wide spread and good for validation, but that was many many months ago things could have changed. From what I read.