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:

  1. Enter a title for the iDevice (in the field that defaults to Java Applet).
  2. Leave the Applet Type set to Other.
  3. Add the .swf file.
    1. click the Add files button, and navigate to the place on your local hard disk containing the .swf file
    2. click the Upload button to allow eXe to capture it
  4. Add the .xml file.
    1. again, click the Add files button, navigate to the .xml file on your machine
    2. click the Upload button to allow eXe to capture it
  5. 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"
    <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"
  6. 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

  1. 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.
  2. Create a hidden link to the XML file in the same rich text editor field.
    1. enter a word
    2. select it with the mouse
    3. use the attachment (chain link) button to attach the xml file to your package
    4. 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.

Last modified 10 years ago Last modified on 2009-05-22T06:10:28+09:00