[SOLVED] (SSP and) SWF OBJECT and dynamically asigning flashvars
Posted: Thu Mar 19, 2009 7:58 am
HI I am trying to use SSP(slideshowpro.net)and SWF object and dynamically change the "flashvars.xmlfile" . the code below is in the head. I would like to be able to enter the xml file path in the "Edit Content" page by inserting a content block in the template i.e"{content block="xmlfile" oneline="true" wysiwyg="false"}"), and then feed the value into the flashvars.xmlfile = "xml/property.xml"; however since the script is in {literal}{/literal} it is not possible.
can anyone point me in the right direction on how to do this? thanks
{literal}
var flashvars = {};
flashvars.xmlfile = "xml/property.xml"; ****THIS NEEDS TO CHANGE*****
var params = {};
params.allowfullscreen = "true";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("swf/hn_property.swf", "property", "700", "435", "9.0.0", "swf/expressInstall.swf", flashvars, params, attributes);
{/literal}
ps, i have tried not using the {literal) tag and also turning the {literal} tag "off" and the back "on" with no success
can anyone point me in the right direction on how to do this? thanks
{literal}
var flashvars = {};
flashvars.xmlfile = "xml/property.xml"; ****THIS NEEDS TO CHANGE*****
var params = {};
params.allowfullscreen = "true";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("swf/hn_property.swf", "property", "700", "435", "9.0.0", "swf/expressInstall.swf", flashvars, params, attributes);
{/literal}
ps, i have tried not using the {literal) tag and also turning the {literal} tag "off" and the back "on" with no success