adamkearsley
07-19-2007, 10:19 AM
Having a problem with ASP and loading a dynamic flash swf.
The flash loads an external XML file and external JPG images.
This all works fine offline and in HTML files but when called in ASP it loads the movie with no XML and other attempts seems to not load anything.
The code supplied with the FLA to load the swf with the XML file is;
<script src="js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
var so = new SWFObject("swf/book.swf", "book", "1000", "600", "8", "#EEEEEE");
so.addVariable("xmlFile","xml/pages.xml");
so.write("flashcontent");
</script>
As mentioned above this DOES work in HTML.
Even the usual code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="450">
<param name="movie" value="swf/book.swf" />
<param name="quality" value="high" />
<embed src="swf/book.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="450"></embed>
</object>
Doesnt seem to work in ASP.
Please help!
Adamk
The flash loads an external XML file and external JPG images.
This all works fine offline and in HTML files but when called in ASP it loads the movie with no XML and other attempts seems to not load anything.
The code supplied with the FLA to load the swf with the XML file is;
<script src="js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
var so = new SWFObject("swf/book.swf", "book", "1000", "600", "8", "#EEEEEE");
so.addVariable("xmlFile","xml/pages.xml");
so.write("flashcontent");
</script>
As mentioned above this DOES work in HTML.
Even the usual code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="450">
<param name="movie" value="swf/book.swf" />
<param name="quality" value="high" />
<embed src="swf/book.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="450"></embed>
</object>
Doesnt seem to work in ASP.
Please help!
Adamk