-
- Lance Monotone

-
Total Posts: 63
Joined: 2008-04-16
North Adams, MA. 01247
|
I probably didn’t do it the right way.
1. In order to not hassle with Magento and paths, I created an image directory under root called ‘img’. I put my SWF in this directory. If anyone can tell me how to use the Magento path system, I’d appreciate it.
2. Then I placed this code in my CMS page (it’s a javascript active content script created by Dreamweaver to get around the active content license issue some versions of IE have, but as long as the path to your SWF is correct, you should be able to use the embed and object tags):
<script type="text/javascript"> AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','name','mb_main','width','618','height','291','align','middle','id','mb_main','src','img/mb_main','quality','high','wmode','transparent','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','img/mb_main' ); //end AC code </script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="mb_main" width="618" height="291" align="middle" id="mb_main"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="img/mb_main.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <embed src="img/mb_main.swf" width="618" height="291" align="middle" quality="high" wmode="transparent" name="mb_main" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object></noscript>
3. Then I added this to the CMS page’s Custom Design tab in order to load the Dreamweaver JS file (which I had copied to my skin’s ‘js’ directory):
<reference name="head"> <action method="addItem"><type>skin_js</type><name>js/AC_RunActiveContent.js</name></action> </reference>
And that’s it. I’ve attached the JS file to this post.
File Attachments
|