Main Flash swf won't work once uploaded to server

I have a 1 frame main SWF. In the first frame I include codeAS2.as like so:

#include "codeAS2.as" (sorry, might sound primitive)

When I test the movie in Flash CS4, everything works fine, it loads all the data from the XML file menu.xml which is in the same folder. Using the Simulate Download function from Flash, it also runs fine, with not one error, everything loads.

Now comes the headscratcher, once I upload it and run it, it does not work. The server is a Linux box and I work on a Mac.

Everything I load externally is in the same folder as the SWF, so I have no absolute paths, all relative to the SWF. Can this be some sort of sandbox issue?

Here is the url: virleo(underscore)new.html SWF: virleo(underscore)new.swf Code: codeAS2.as (inline code) and Menu.as (class)

13.10.2009 15:01:10
2 ОТВЕТА
РЕШЕНИЕ

Question like yours was answered many times. I remember one yesterday. I don't have link but you should change one option. Look after it in File>Publish Settings.. Should appear window. Go to "Flash" tab and change "Local playback security" option to "Access network only". Should work.

0
13.10.2009 19:23:30

Look after it in File>Publish Settings.. Should appear window. Go to "Flash" tab and change "Local playback security" option to "Access network only". Should work.

but doesn't

0
31.07.2012 16:24:05
This should be a comment, not an answer. Check this metaSO question and Jon Skeet: Coding Blog on how to give a correct answer.
Yaroslav 11.10.2012 11:56:13