Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I insert a “flashvar” in a flash movie. (XML,FLASH)
 
joxmiguel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-08-05
 

Hello forum & staff members.

Maybe the topic sounds easy, but isnt, finally i make works a loading flash movie in home page with images via xml (so much pain), this is the code.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="470" height="230" id="tech" align="middle">
<
param name="allowScriptAccess" value="sameDomain" />
<
param name=movie value="http://www.mysite.com/media/imagerotator.swf“>
<param name="
flashvars" value="showicons=false&shownavigation;=false&linkfromdisplay;=true&repeat;=true&shuffle;=true&transition;=bgfade&rotatetime;=6" />
<param name=quality value=high>
<param name="
wmode" value="transparent">
<embed src="
http://www.mysite.com/media/imagerotator.swf?file=http://www.mysite.com/media/banners-top.xml" quality="high" wmode="transparent" width="470" height="230" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Reload… and HELL!! , this movie finally loads, but the flashvars doesnt load, this script (JW IMAGE ROTATOR 3.17) uses sfwobjet.js, I added the line

<action method="addJs"><script>swfobject.js</script></action>
In my page.xml

But the variables doesnt load, and I cant configure anything of my xml slideshow :(, if anyone can help me, please say it :D

 
Magento Community Magento Community
Magento Community
Magento Community
 
joxmiguel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-08-05
 

The working code is:

<script type="text/javascript">
   var 
so = new SWFObject("http://www.mydomain/imagerotator.swf""banners-top""470""230""6""#336699");
   
so.addParam('allowfullscreen','true');
   
so.addVariable("file""http://www.mydomain//banners-top.xml");
   
so.addVariable("linkfromdisplay""true");
   
so.write("flashcontent");
</script>

The problem now is that the “linkfromdisplay” variable doesnt works embebed in magento :(, but if you dont wanna link the images this problem is revolved.

 
Magento Community Magento Community
Magento Community
Magento Community
 
joxmiguel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-08-05
 

The solution of this, are on wiki :-D * How to add JW Image Rotator 3.17 (XML/FLASH) http://www.magentocommerce.com/wiki/wiki/how_to_add_jw_image_gallery_xml-flash

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top