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:
@@ -29,8 +29,8 @@ public class EmbeddedSwfLoader extends EventDispatcher
|
|||||||
public function EmbeddedSwfLoader ()
|
public function EmbeddedSwfLoader ()
|
||||||
{
|
{
|
||||||
_loader = new Loader();
|
_loader = new Loader();
|
||||||
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
|
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchEvent);
|
||||||
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
|
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, dispatchEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -107,16 +107,6 @@ public class EmbeddedSwfLoader extends EventDispatcher
|
|||||||
return !(loaderInfo.bytesTotal == 0 || loaderInfo.bytesLoaded != loaderInfo.bytesTotal);
|
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;
|
protected var _loader :Loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user