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
This commit is contained in:
Ray Greenwell
2009-02-02 21:54:31 +00:00
parent 4b4701b4aa
commit ea185ceab0
+7 -4
View File
@@ -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
}
// }
}
}
}
}