Hi there!
I came across the following issue:
-
I am loading a particular FLA (let’s call it Module1.fla) which contains a Symbol with an associtated class “FakeImage1”; the class file DOES NOT exist, só Flash creates it when compiling the FLA. This FLA has a Document Class (Module1.as), in which I instantiante FakeImage1 (which is a different asset/graphic) by calling …new FakeImage1()
-
then, I am using a custom ModuleManager to unload Module1 and load another SWF (Module2.swf/Module2.as). This one also has a FakeImage1 Symbol in it’s Library and also instantiates it in the Document Class.
-
now, assuming that I am correctly unloading Module1 (in my ModuleManager) before I load Module2, why is it that FakeImage1 in Module2 is instantiating the same asset that was instantiated in Module1 ?
It seems that the automatically-created FakeImage1 class is still in memory (or wherever Flash puts it) when I load Module2 and therefore, my new asset isn’t being loaded - instead, the first one is.
Dos this make sense, anyone?
Note1: I DON’T want to use class/as files for my Library symbols;
Note2: of course, I could just use different class names in my modules/flas, but le’ts assume that I don’t want to do that
Thanks!