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

Flash with XML.  Unable to edit SWF to change URLs to absolute values
 
mistrzu20
Jr. Member
 
Total Posts:  13
Joined:  2009-05-24
 

Hi Team members and fellow magentoers.

I have read all posts and tutorials in reference to loading flash with xml onto CMS home page.
I have tried all, changed all references to absolute URLs and nothing worked.  My last suspicion is that the SWF file that came with the package has non-absolute URL values hard coded, which I obviously can’t edit.

To be a little more specific, I have tried rendering a Banner Rotator from www.flashxml.net

If anyone has had luck with being able to show it up on their home page using the CMS, please be kind enough to lend a hand.

I believe that unfortunately my files will need to be placed directly where the CMS page is called from. 

Can you guys please help? If I find a solution in the meantine, I will be sure to post it here.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gyniolatry
Sr. Member
 
Total Posts:  132
Joined:  2009-11-26
Perth.au
 

I had similar path issues with a xml-flash file.
swf could not find the xml with object code in content of cms page (swf and xml were in same directory..)
*Tried placing object info in CMS page ‘content’ and a custom block ...-’Fail’
*Tried ={{media url="flash/xmlFlash.swf"}} and {{Skin....  for movie value and Embed source- ‘Fail’ ,

The only way i could get it to work was
1. Place xmlFlash.swf and xmlFlash.xml files in same directory eg site/media/flash/

2. In flash Object, hard code movie value= and Embed src= with “http://mysite.com/media/flash/xmlFlash.swf).

3.Create a myflash.phtml containing <object >............normal flash stuff here........</object>
and place it in a template directory.  (I chose catalog/product because I had it open...)

In Content of CMS page
<div class="flash">
{{block type="catalog/product" template="catalog/product/myflash.phtml"}}
</div>

I have No idea why it works from within a template file but not directly in content but… it does

 
Magento Community Magento Community
Magento Community
Magento Community
 
mistrzu20
Jr. Member
 
Total Posts:  13
Joined:  2009-05-24
 
Gyniolatry - 07 February 2010 03:44 PM

I had similar path issues with a xml-flash file.
swf could not find the xml with object code in content of cms page (swf and xml were in same directory..)
*Tried placing object info in CMS page ‘content’ and a custom block ...-’Fail’
*Tried ={{media url="flash/xmlFlash.swf"}} and {{Skin....  for movie value and Embed source- ‘Fail’ ,

The only way i could get it to work was
1. Place xmlFlash.swf and xmlFlash.xml files in same directory eg site/media/flash/

2. In flash Object, hard code movie value= and Embed src= with “http://mysite.com/media/flash/xmlFlash.swf).

3.Create a myflash.phtml containing <object >............normal flash stuff here........</object>
and place it in a template directory.  (I chose catalog/product because I had it open...)

In Content of CMS page
<div class="flash">
{{block type="catalog/product" template="catalog/product/myflash.phtml"}}
</div>

I have No idea why it works from within a template file but not directly in content but… it does

Holly shmolly it worked! Awesome, thanks!
I placed in my phtml file the following and used the absolute value in all three instances:

<script type="text/javascript" src="http://www.mydomain.com/swf/swfobject.js"></script>
        
<script type="text/javascript">
            var 
flashvars {};
            
flashvars.settingsXML "http://www.mydomain.com/swf/settings.xml";
            var 
params {};
            
params.scale "noscale";
            
params.salign "tl";
            
params.wmode "transparent";
            var 
attributes {};
            
swfobject.embedSWF("http://www.mydomain.com/swf/banner.swf""BannerDiv""600""260""9.0.0"falseflashvarsparamsattributes);
        
</script>
        
<div id="BannerDiv">
            <
a href="http://www.adobe.com/go/getflashplayer">
                <
img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </
a>
        </
div>
and then in CMS just called it with a
{{block type="catalog/product" template="catalog/product/myflash.phtml"}}
Sometimes it feels that magento works in mysterious ways smile

Thanks again!

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