Closed (fixed)
Project:
SWFObject API
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2009 at 02:58 UTC
Updated:
24 Aug 2009 at 05:04 UTC
Can someone tell me if this module will assist me inserting an swf in a node that refers to an XML file?
This is the code I would normally embed in an HTML file:
<script type="text/javascript" src="files/swfobject.js"></script>
<div id="flashcontent">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player</a> and a browser with JavaScript enabled.<br />Built on <a href="http://flashpanoramas.com/player/">Flash Panorama Player</a>.</div>
<script type="text/javascript">
var so = new SWFObject("files/pano.swf", "pano", "700px", "300px", "9", "#282828");
so.addVariable("xml_file","navigation.xml");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
window.document["pano"].focus();
</script>
Comments
Comment #1
KrisBulman commentedI was able to get this working in swftools, http://drupal.org/node/380580