     {
         info.removeEventListener(Event.COMPLETE, handleComplete);
         info.removeEventListener(Event.INIT, handleInit);
-        info.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
+        info.removeEventListener(IOErrorEvent.IO_ERROR, handleError);
+        info.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, handleError);
         info.removeEventListener(ProgressEvent.PROGRESS, handleProgress);
     }
 
     /**
-     * A callback to receive IO_ERROR events.
-     */
-    protected function handleIOError (event :IOErrorEvent) :void
+     * A callback to receive IO_ERROR and SECURITY_ERROR events.
+     */
+    protected function handleError (event :ErrorEvent) :void
     {
         stoppedLoading();
         setupBrokenImage(-1, -1);

    {
        info.addEventListener(Event.COMPLETE, handleComplete);
        info.addEventListener(Event.INIT, handleInit);
        info.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
        info.addEventListener(ProgressEvent.PROGRESS, handleProgress);
    }



import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.ErrorEvent;
import flash.events.IOErrorEvent;
import flash.events.MouseEvent;
import flash.events.NetStatusEvent;
