         portal.removeEventListener(PortalEvent.LOAD, portal_loadHandler);
         portal.removeEventListener(FaultEvent.FAULT, portal_faultHandler);
 
-        AppEvent.dispatch(AppEvent.PORTAL_STATUS_UPDATED);
+        dispatchPortalStatusUpdate();
     }
 
     private function portal_faultHandler(event:FaultEvent):void


        portal.url = null;
        portal.unload();
    }

    private function portal_loadHandler(event:PortalEvent):void

        else
        {
            unloadPortal();
            dispatchPortalStatusUpdate();
        }
    }

