gnaiz
04-08-2010, 01:07 AM
Hi. I am relatively new to flash. In fact, I am using a map building program that generates the swf code and such. I am trying to use swfobject to display an image when the use does not have flash. However, as I am pretty new to coding and all, I can't for the life of me figure out the correct code to place on my site because the code the program is generating is signifcantly more complex than that shown in the example on the swfobject help.
Below is the code I have. It works fine when I use without swfobject and paste directly to my pages.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0"
width="400" height="100%" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://www.mysite.com/map3/imapbuilder/loader.swf" />
<param name="base" value="http://www.mysite.com/map3/imapbuilder/" />
<param name="flashvars" value="datasource=CountriesMap1.xml" />
<param name="loop" value="false" />
<param name="menu" value="true" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://www.mysite.com/map3/imapbuilder/loader.swf" base="http://www.mysite.com/map3/imapbuilder/"
flashvars="datasource=CountriesMap1.xml"
loop="false" menu="true" quality="best" wmode="transparent"
bgcolor="#ffffff" width="400" height="100%" align="middle"
allowScriptAccess="always" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
Can someone help me figure out the html code i need to embed for use with the above flash code? I am just confused based on all the examples where there is a link just to the .swf file.
Any help producing the correct code would be greatly appreciated. Thanks!
Also, I am primarily using swfobject so I can have an alternate image displayed for non flash users. For example:
<a href="http://mysite.com"><img
style="border: 0px solid ; width: 400px; height: 300px;"
alt="No Flash!"
src="http://mysite.com/images/flash_replacement.jpg"></a>
Below is the code I have. It works fine when I use without swfobject and paste directly to my pages.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0"
width="400" height="100%" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://www.mysite.com/map3/imapbuilder/loader.swf" />
<param name="base" value="http://www.mysite.com/map3/imapbuilder/" />
<param name="flashvars" value="datasource=CountriesMap1.xml" />
<param name="loop" value="false" />
<param name="menu" value="true" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://www.mysite.com/map3/imapbuilder/loader.swf" base="http://www.mysite.com/map3/imapbuilder/"
flashvars="datasource=CountriesMap1.xml"
loop="false" menu="true" quality="best" wmode="transparent"
bgcolor="#ffffff" width="400" height="100%" align="middle"
allowScriptAccess="always" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
Can someone help me figure out the html code i need to embed for use with the above flash code? I am just confused based on all the examples where there is a link just to the .swf file.
Any help producing the correct code would be greatly appreciated. Thanks!
Also, I am primarily using swfobject so I can have an alternate image displayed for non flash users. For example:
<a href="http://mysite.com"><img
style="border: 0px solid ; width: 400px; height: 300px;"
alt="No Flash!"
src="http://mysite.com/images/flash_replacement.jpg"></a>