Hello,
I am working in version 5.5 and I have a flash movie I want to place in the page. It gets a lot of its parameters from an XML file. The way I used this before in other aspx pages was to databind the XML file to the fjash file.
I cannot seem to get this to work with the Flash web part. The movie loads, the preloader starts, but then it seems it cannot find the rest of the data.
In setting up the webpart I put this in Flash URL:
/Sandbox3/SMF/media/Flash/banner.swf
And this in Additional Parameters:
name="menu" value="false"
name="dataPath" value="/SMF/media/Flash/banner_asset/data.xml"
I get the behavior I described above.
If I were to use this file in a straight HTML file with swfobject.js the code would look like this:
<script type="text/javascript">
var so = new SWFObject("banner.swf", "mymovie", "460", "140", "9");
so.addParam("menu", "false");
so.addVariable("dataPath", "banner_asset/data.xml");
so.write("flashcontent");
</script>
What I seem to be missing is the ability to pass the variable to the movie properly.
Below is the code from the source of the rendered page
<div class="topbanner"><div class="VideoLikeContent" id="FlashPlaceholder_plc_lt_zoneTopBanner_FlashBanner_ltlScript" ></div>
<script src="/Sandbox3/CMSWebParts/Media/Flash_files/flash.js" type="text/javascript"></script><script type="text/javascript">
//<![CDATA[
LoadFlash('FlashPlaceholder_plc_lt_zoneTopBanner_FlashBanner_ltlScript', '/Sandbox3/SMF/media/Flash/banner.swf', 480, 140, 'best', 'default', true, true, 'You have an old version of Adobe\'s Flash Player. \<a href=\"http://www.macromedia.com/go/getflashplayer/\" target=\"_blank\"\>Get the latest Flash player\</a\>.', name="menu" value="false"
name="dataPath" value="/SMF/media/Flash/banner_asset/data.xml"
);
//]]>
</script></div>
Any ideas how to get this to work? I don't use Flash a lot, but when I do use it I tend to use these XML types because they are lighter.