No need to route these events through pointless methods.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4534 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-02-06 00:01:41 +00:00
parent 2f7c992320
commit 4a630a5bb5
@@ -29,8 +29,8 @@ public class EmbeddedSwfLoader extends EventDispatcher
public function EmbeddedSwfLoader ()
{
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchEvent);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, dispatchEvent);
}
/**
@@ -107,16 +107,6 @@ public class EmbeddedSwfLoader extends EventDispatcher
return !(loaderInfo.bytesTotal == 0 || loaderInfo.bytesLoaded != loaderInfo.bytesTotal);
}
protected function completeHandler (e :Event) :void
{
dispatchEvent(e);
}
protected function ioErrorHandler (e :Event) :void
{
dispatchEvent(e);
}
protected var _loader :Loader;
}
}