From 0a48fb2b188cc1f982514021f869f321cffb8539 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 30 Jan 2007 18:16:21 +0000 Subject: [PATCH] Renamed, commented, deprecated. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4517 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../{EmbededClassLoader.as => EmbeddedSwfLoader.as} | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename src/as/com/threerings/util/{EmbededClassLoader.as => EmbeddedSwfLoader.as} (90%) diff --git a/src/as/com/threerings/util/EmbededClassLoader.as b/src/as/com/threerings/util/EmbeddedSwfLoader.as similarity index 90% rename from src/as/com/threerings/util/EmbededClassLoader.as rename to src/as/com/threerings/util/EmbeddedSwfLoader.as index 2821692a0..7c08a3bd1 100644 --- a/src/as/com/threerings/util/EmbededClassLoader.as +++ b/src/as/com/threerings/util/EmbeddedSwfLoader.as @@ -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 * 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 * {@link load}. IOErrorEvent.IO_ERROR will be dispatched if there's a problem reading the * 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.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);