...

View Full Version : embedding swf in html pages



sudhakararaog
12-17-2009, 12:37 AM
i used to use dreamweaver code to embed an swf file using the
AC_RunActiveContent.js file along with the html code

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','400','title','Video','src','test','quality','h igh','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','test' ); //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,28,0" width="550" height="400" title="Video">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<embed src="test.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object></noscript>


i have used the swfobject method by following the steps mentioned at
http://code.google.com/p/swfobject/wiki/documentation

when i use the swfobject method and validate my html code there are no errors however with the dreamweaver code i get errors when validating my html code

my question is when i downloaded the zip file from
http://code.google.com/p/swfobject/

after unzipping this file there are 2 swfobject.js files one in the root directory after unzipping and another swfobject.js file inside a folder called src

i have used swfobject.js file from the root directory when i called this from
<script type="text/javascript" src="swfobject.js"></script>

and the flash file plays and also the html code validates,

is this the right way of using swfobject.js file from root directory or should i be using the one from the src folder


also just to test how the alternate content would appear if the flash player plugin is disabled or uninstalled i entered html text as alternate content using swfobject method, what i have noticed is i get the alternate content only if i disable flash player plugin however if i disable
javascript in most browsers the swf file plays

as the swfobject is calling a javascript i guess the swf file should not play or is this how it normally works

if this is the case in the alternate text, i guess i should be mentioning

"You have either javascript disabled/turned off or do not have a flash player plugin installed, download the latest flash player"




please advice.

thanks a lot

vineet
12-17-2009, 04:43 AM
you can give link to download adobe flash player in alternate content.

http://www.adobe.com/products/flashplayer/

vineet



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum