Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ayo Adesina 445 posts 1059 karma points
    Jan 08, 2012 @ 21:45
    Ayo Adesina
    0

    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>

    =================================================================
    ANY IDEAS...... by the way I have looked that the umbraco video loading data to flash but that uses XSLT and I really don't wnat to use XSLT

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jan 08, 2012 @ 23:13
    Bo Damgaard Mortensen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft