Thread: flashxml
View Single Post
  #3  
Old 09-15-2011, 04:37 AM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default Re: flashxml

Thank you for your reply. In the process of setting up the script to show you, I tried something that was not in flashxml documentation. At least not on the same section. when you move the script out of their directory, you need to set paths to the files. what they don't mention is that you need to incorporate this for both the xml file the swf file the path and js file..
Hope this helps someone.

### customer/home.tpl ###
{include file="meta.tpl" }
<link rel="stylesheet" type="text/css" href="{$SkinDir}/{#CSSFile#}" />
[[ flash head start ]]
{literal}
<script type="text/javascript" src="/flash_header/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML = "http://www.domain.com/flash_header/settings.xml";
flashvars.folderPath = "http://www.domain.com/flash_header/";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowScriptAccess = "always";
params.allowFullScreen = "true";
var attributes = {};
swfobject.embedSWF("/flash_header/MediaSlideshowFX.swf", "DivMediaSlideshowFX", "800", "300", "9.0.0", false, flashvars, params, attributes);
</script>
{/literal}
[[ flash head end ]]

</head>


What i had to do wash add both below. I was only adding one or the other. in a trial and error process
flashvars.settingsXML = "http://www.domain.com/flash_header/settings.xml";
flashvars.folderPath = "http://www.domain.com/flash_header/";
__________________
X-Cart version 4.1.9
PHP 5.2.13 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.77-log
MySQL client 5.0.77
Web server Apache/2.2
Operation system Linux
Perl not found
XML parser (expat) found
Reply With Quote