From a11b338156b7319cbb73b0a1c346137a739ced31 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 27 Feb 2007 19:43:55 +0000 Subject: [PATCH] Document something that doesn't work. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4605 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/EmbeddedSwfLoader.as | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/as/com/threerings/util/EmbeddedSwfLoader.as b/src/as/com/threerings/util/EmbeddedSwfLoader.as index 990286541..85155b465 100644 --- a/src/as/com/threerings/util/EmbeddedSwfLoader.as +++ b/src/as/com/threerings/util/EmbeddedSwfLoader.as @@ -59,6 +59,18 @@ public class EmbeddedSwfLoader extends EventDispatcher _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, dispatchEvent); } +// This doesn't work. We cannot write parameters to the contentLoaderInfo. +// So: there is no way to pass parameters to content loaded using loadBytes, +// and there's no way to pass parameters to any other content without +// destroying caching (because you must append them to the url). Stupid flash. +// /** +// * Set a parameter accessible to the loaded content. +// */ +// public function setParameter (name :String, val :String) :void +// { +// _loader.contentLoaderInfo.parameters[name] = val; +// } + /** * Load the SWF from a Byte Array. A CLASS_LOADED event will be dispatched on successful * completion of the load. If any errors occur, a LOAD_ERROR event will be dispatched.