swfobject module write problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jadusdathe
Forum Members
Forum Members
Posts: 54
Joined: Sat Sep 20, 2008 3:50 pm

swfobject module write problem

Post by jadusdathe »

Hi all,

Im using the swfobject function. http://dev.cmsmadesimple.org/projects/swfobject

This works fine.

The way i add flashcontent to my page WAS like this:

Code: Select all

<div id="smart-banner"></div>
<__script__ type="text/javascript">
	// <![CDATA[

	var so = new SWFObject("smart-banner.swf", "myMovie", "537", "195", "8", "#000000");  
	so.addVariable("XMLpath", "smart-banner.xml"); 
	so.write("smart-banner");

	// ]]>
</__script>

this is the code im using NOW in my template:

Code: Select all

{swfobject swf='uploads/flash/smart-banner.swf' width='537' height='195' wmode='transparent' fver='8'
 fmenu='false' fvarname='XMLpath' fvarval='smart-banner.xml' divid='smart-banner'}
As you see, the only thing im missing is the "so.write("smart-banner");" part.

Does somebody know how i can resolve this?

Thanks!
Last edited by jadusdathe on Fri Jun 05, 2009 9:30 pm, edited 1 time in total.
viebig

Re: swfobject module write problem

Post by viebig »

Did you try to use the object tag?

Similar syntax... no js and acessible

Code: Select all

{object src='uploads/flash/smart-banner.swf' width='537' height='195' params="FlashVars::XMLpath=smart-banner.xml||wmode::transparent" alt="Smart Banner Area"}

Download the object tag.. link below my post, copy the file to your plugins folder and you're set

Regards

G
Post Reply

Return to “Modules/Add-Ons”