Include XML with Flash File
Some Flash files require including an XML file in the same directory for complete functionality. There are a couple of ways you can do this in eXe. (Be sure to use only short ASCII names for the files, without any spaces or special characters. Make sure that the name is unique within the eXe package.)
Java Applet iDevice
The Java Applet iDevice allows bundling arbitrary files with your package and allows you to insert HTML in the Applet Code: box. So to include an SWF and associated XML file, we can:
- Enter a title for the iDevice (in the field that defaults to Java Applet).
- Leave the Applet Type set to Other.
- Add the .swf file.
- click the Add files button, and navigate to the place on your local hard disk containing the .swf file
- click the Upload button to allow eXe to capture it
- Add the .xml file.
- again, click the Add files button, navigate to the .xml file on your machine
- click the Upload button to allow eXe to capture it
- In the Applet Code: box enter the standard HTML object tag that references the swf file that you uploaded. For example, for the file 'dragndrop.swf' (which also uses 'dragndrop.xml' you would enter:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700" height="560" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"> <param name="movie" value="dragndrop.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#aaaaaa" /> <embed src="dragndrop.swf" quality="high" bgcolor="#aaaaaa" width="700" height="560" name="Media player" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" </embed> </object>
- Click the green check box.
The Flash animation may not display within eXe, but should work correctly in the exported content package or web site.
Rich Text Editor Media Button
- You can use the Rich Text Editor media button to insert the SWF file as normal. Be sure to tick the Auto Play box on the Advanced tab.
- Create a hidden link to the XML file in the same rich text editor field.
- enter a word
- select it with the mouse
- use the attachment (chain link) button to attach the xml file to your package
- hide the link (There are many ways this can be done. Perhaps most straightforward is to use the HTML button and then find the <a href="resources/dragndrop.xml"> tag and insert style="display:none" so that it looks something like <a href="resources/dragndrop.xml" style="display:none">
Again, the Flash animation may not work properly within eXe, but it should work after being exported.