Eugeny89
Eugeny89

Reputation: 3741

Error 2000 in flash

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

Answers (2)

Mike6679
Mike6679

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

phwd
phwd

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.

  1. If it is not the external swf it could be that some of your assets are not present in your debug folder.
  2. 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"));

  3. Full url references seem to work better than relative.

  4. I don't recommend this last one but you can try suppressing the error with adding a event listener to contentLoaderInfo for the actual Security Event.

Upvotes: 2

Related Questions