Reputation: 3741
Sometimes(I can't give exact classification of the situation) Error #2000 is thrown by flash player. I suppose it's caused by working with external swf(sqiglly spell checking library) via local connection.
Have you any idea how can I fix the bug?
thank you in advance!
Upvotes: 0
Views: 1092
Reputation: 6136
You can try -use-network=false in Compiler settings AND embed any external files you are acessing such as xml or css. ALSO is any in any child swfs you are loading into your main swf, they should do the same if they in turn load external assets.
Upvotes: 1
Reputation: 19995
Without the actual code, one has about 3 or 4 different reasons for Error #2000. Most of the times it is because the security policy was not set properly or was not received in time.
A next issue to check would be if there is enough time for the context to be set up,
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("myExternalMovie.swf");
myLoader.load(url);
// Notice it is not the following
myLoader.load(new URLRequest("myExternalMovie.swf"));
Full url references seem to work better than relative.
Upvotes: 2