SWF file not loading content from XML when uploaded to site

447 Views Asked by At

I have a SWF file which is an e-learning game that I would like to upload to a website.

The game works fine when opened in Flash locally from the desktop, however when uploaded to the site is does not load the text content from its accompanying XML file

The folder that contains the SWF file contains the following files:

  • engine.swf
  • game.xml
  • index.html
  • Include > swfobject.js

The game has a separate XML file so that the text content can be easily changed. Locally this works as it should. However this does not work when uploaded to the website.

When live on the site, the game works but it does not pull the content from the XML file - it just says "undefined".

The site is using Wordpress and I have installed the Anywhere Flash Embed plugin and placed the object on the page using shortcode.

From researching other threads It seems that it may not be a pathing issue as the XML file is in the same file as the SWF file.

I believe it could be a security issue - I saw one SOLVED thread where the following had been added:

System.security.allowDomain("http://www.example.com");

Is there anyway I can add this permission without editing the SWF file?

(I tried decompiling the Flash file but when I openened the resulting FLA file in animator I got a lot of error messages about it being action script 1 and having to change things to action script 3)

Any advise at all greatly appreciated.

0

There are 0 best solutions below