title: Loader-Class - SecurityError: Error #2000: No active security context
body: <p>I try to "catch" this error when I'm loading some images.
  The following code is an test-case for my problem to secure that there are no errors in the surrounding code.</p>
  
  <pre><code>import flash.events.SecurityErrorEvent;
  
  import flash.display.Loader;
  import flash.net.URLRequest;
  
  loadImage ();
  function loadImage (): void {
              var _imageLoader = new Loader();
              _imageLoader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, imageSecurityErrorEventListener);
              var request:URLRequest = new URLRequest("this-image-not-exits.jpg");
  
              _imageLoader.load(request);
  }
  
  function imageSecurityErrorEventListener (e:SecurityErrorEvent) {
      trace ("This is my own trace for the Security Error");
  }
  </code></pre>
  
  <p>I know that there are lot's of posts and questions in the www and here, but I couldn't find an answer to my problem.</p>
  
  <p>I'm working on an interactiv-movie with many images and movies which are loaded dynamically in the application.</p>
  
  <p>In this snipped I generated the worst case in my application (try to load an image that not exits).
  When I run this code I get the trace "SecurityError: Error #2000: No active security context" and not the trace of my the Listener.
  Do you have any idea whats going wrong?</p>