From ea185ceab0069550dececb4d947b5689253be211 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 2 Feb 2009 21:54:31 +0000 Subject: [PATCH] Attempt to call unloadAndStop(), but remain compileable for flash 9 for the time being. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@772 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flash/LoaderUtil.as | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/flash/LoaderUtil.as b/src/as/com/threerings/flash/LoaderUtil.as index d31838ed..8a203c66 100644 --- a/src/as/com/threerings/flash/LoaderUtil.as +++ b/src/as/com/threerings/flash/LoaderUtil.as @@ -20,16 +20,19 @@ public class LoaderUtil } catch (e1 :Error) { // ignore } -// try { -// loader.unloadAndStop(); -// } catch (e2 :Error) { + try { + //loader.unloadAndStop(); + loader["unloadAndStop"](); + trace("content unloadAndStopped"); + } catch (e2 :Error) { // hmm, maybe they are using FP9 still try { loader.unload(); + trace("content unloaded"); } catch (e3 :Error) { // ignore } -// } + } } } }