Hi guys, I have got a user control with a single String Property, on load event the string property called XML is loaded with XML based on contents that has been added in to umbraco.
I have created a macro, and inside umbraco I can see the property its ticked when I click save its green, and every thing seems ok, now what I want to do is point my flash movie to read that value as the xml to load the flash movie.
===== THIS IS THE JAVA SCRIPT IN MY TEMPLATE THAT WILL POWER THE FLASH MOVE ========
<script type="text/javascript">
var flashvars = {};
flashvars.xml = "config.xml"; <<< HERE I WANT IT TO GET THE XML OUT PUT FROM MY USER CONTROL
I think you might have to create a new template for what you want to achieve. In this template you can simply put your usercontrol that renders the XML and point your flashvars.xml to a url like: mypage.aspx?altTemplate=xml where 'xml' is the name of your template with the usercontrol.
User Control Generate XML to power a flash Movie
Hi guys, I have got a user control with a single String Property, on load event the string property called XML is loaded with XML based on contents that has been added in to umbraco.
http://pastebin.com/xqcpjgyH << THIS IS MY USER CONTROL
I have created a macro, and inside umbraco I can see the property its ticked when I click save its green, and every thing seems ok, now what I want to do is point my flash movie to read that value as the xml to load the flash movie.
===== THIS IS THE JAVA SCRIPT IN MY TEMPLATE THAT WILL POWER THE FLASH MOVE ========
<script type="text/javascript">
var flashvars = {};
flashvars.xml = "config.xml"; <<< HERE I WANT IT TO GET THE XML OUT PUT FROM MY USER CONTROL
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("cu3er.swf", "cu3er-container", "960", "400", "9", "expressInstall.swf", flashvars, attributes);
</script>
Hi Ayo,
I think you might have to create a new template for what you want to achieve. In this template you can simply put your usercontrol that renders the XML and point your flashvars.xml to a url like: mypage.aspx?altTemplate=xml where 'xml' is the name of your template with the usercontrol.
Let me know how that works out :-)
- Bo
is working on a reply...