View Full Version : What is the point of all this code to embed a flash file?

03-27-2008, 07:11 PM
What is the point of all this code to embed a flash file? It looks real redundant by Dreameaver. Things like width and quality are stated again and again?

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','197','src','flash/mp3_player/Mp3 Player - JamesK','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/mp3_player/Mp3 Player - JamesK' ); //end AC code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="197">
<param name="movie" value="flash/mp3_player/Mp3 Player - JamesK.swf">
<param name="quality" value="high">
<embed src="flash/mp3_player/Mp3 Player - JamesK.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32"></embed>

If I want to put in <param name='flashVars' value='play=true'> how do I do it? Do I need to put it in 3 times among this code?

03-27-2008, 10:20 PM
With that code yes. Thats Adobes implementation of putting flash on the page to get around the "Click to Activate" thing in some browsers. Personally I recommend http://blog.deconcept.com/swfobject/

Version 2.0 is better but harder to use. v1.5 is straightforward.

03-28-2008, 09:02 AM
Thanks mate, I like that swfobject (http://blog.deconcept.com/swfobject/) If its good enough for you its good enough for me!

03-28-2008, 10:21 AM
Seems as if I should go with v2 because it seems more future proof.