Results 1 to 7 of 7

Thread: SWF Object 2.0

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default SWF Object 2.0

    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>
    Last edited by bluewalrus; 01-19-2009 at 05:22 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    bluewalrus (01-18-2009)

  4. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Oo thanks. Are there some features that make each one better or is it more of the coders preference?

  5. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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...

  6. The Following User Says Thank You to Medyman For This Useful Post:

    bluewalrus (01-19-2009)

  7. #5
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    Swf Object is also valid for W3C for those who want compliant code. what CS3 and older spit out arent.

  8. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    There are others that are validate that aren't swf object ...

    Code:
    <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>

  9. #7
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •