From c04adc6a6e41225213cbbb7f7edff8574d90785d Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 25 Sep 2008 23:54:58 +0000 Subject: [PATCH] Brevify. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5398 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/MultiLoader.as | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/as/com/threerings/util/MultiLoader.as b/src/as/com/threerings/util/MultiLoader.as index 1eec4ade6..6c6851495 100644 --- a/src/as/com/threerings/util/MultiLoader.as +++ b/src/as/com/threerings/util/MultiLoader.as @@ -129,16 +129,8 @@ public class MultiLoader var l :Loader = new Loader(); var lc :LoaderContext = new LoaderContext(false, appDom); try { - // In Air players, LoaderContext has an additional property that dictates whether - // a Loader is allowed to load bytes that contain executable code (SWFs). Since - // that is the default for non-air runtimes, and that is the expected behavior - // for MultiLoader, we set the property to true if it's found in the current - // runtime's LoaderContext. - Object(lc)["allowLoadBytesCodeExecution"] = true; - } catch (err :Error) { - // throw this away, it merely indicates the property was not found on the - // LoaderContext. - } + Object(lc)["allowLoadBytesCodeExecution"] = true; // AIR compatibility + } catch (err :Error) { /* We must not be in AIR! */ } // now we only need handle the two cases if (source is URLRequest) { l.load(URLRequest(source), lc);