- Code: Select all
SecurityError: Error #2000: No active security context
(game starts off by loading the tilemap, which is why the game itself wouldn't start)
I researched a bit, and this error can be caused when the file name on the server doesn't match exactly what flash is trying to load.
Imagine I have the following code:
- Code: Select all
var tileRequest:URLRequest = new URLRequest("myserver.com/tilemap.png");
var loaderContext:LoaderContext = new LoaderContext(true);
tileLoader.load(tileRequest, loaderContext);
If the file on the server wasn't exactly called "tilemap.png", it would create this error. For example, If the file was called "Tilemap.png" or "tilemap.PNG" this error would happen.
So today, I was getting this error for about 30 minutes. I didn't change anything, because I was researching what causes this error, and it magically went away by itself, which leads me to believe that it was caused by GameFS. I literally did not change a single line of code, and the error was happening for me and other people at different locations for the 30 minutes, and it then fixed itself (this was the live version of the game).
On my computer while this error was happening, I tried compiling with commenting out the .load() line, and the error went away, so it was caused by attempting to load the tilemap image from GameFS.
Does GameFS change the file names? Could my tilemap.png become tilemap.PNG or Tilemap.png due to GameFS?