Renamed, commented, deprecated.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4517 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+8
-2
@@ -13,14 +13,20 @@ import flash.system.LoaderContext;
|
|||||||
/**
|
/**
|
||||||
* Allows you to load an embeded SWF stored as a Byte Array then access any stored classes
|
* Allows you to load an embeded SWF stored as a Byte Array then access any stored classes
|
||||||
* within the SWF.
|
* within the SWF.
|
||||||
|
* Embed your swf like:
|
||||||
|
* [Embed(source="foo.swf", mimeType="application/octet-stream"]
|
||||||
|
* Then, instantiate that class and pass it to load() as a ByteArray.
|
||||||
*
|
*
|
||||||
* An Event.COMPLETE will be dispatched upon the successful completion of a call to
|
* An Event.COMPLETE will be dispatched upon the successful completion of a call to
|
||||||
* {@link load}. IOErrorEvent.IO_ERROR will be dispatched if there's a problem reading the
|
* {@link load}. IOErrorEvent.IO_ERROR will be dispatched if there's a problem reading the
|
||||||
* ByteArray.
|
* ByteArray.
|
||||||
|
*
|
||||||
|
* @deprecated Content packs are coming, and symbols can be embedded directly
|
||||||
|
* by using [Embed(source="foo.swf#somesymbol")]
|
||||||
*/
|
*/
|
||||||
public class EmbededClassLoader extends EventDispatcher
|
public class EmbeddedSwfLoader extends EventDispatcher
|
||||||
{
|
{
|
||||||
public function EmbededClassLoader ()
|
public function EmbeddedSwfLoader ()
|
||||||
{
|
{
|
||||||
_loader = new Loader();
|
_loader = new Loader();
|
||||||
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
|
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
|
||||||
Reference in New Issue
Block a user