Hi - If I have something like
[Embed(source="Splash.png")]
private var Splash : Class;
Can it be garbage collected, and if so, how? According to adobe docs :
"Applications that run in Flash Player or AIR have multiple GCRoots. You can think about a GCRoot as the trunk of a tree with the objects of the application as the branches. The Stage is a GCRoot. Loaders are GCRoots. Certain menus are GCRoots. Every object that is still in use by the application is reachable from one of the GCRoots within the application. GCRoots are never garbage collected."
My reading of th above suggests that embedded assets are never garbage collected because they are embedded in the SWf at compile time and so part of a GCRoot? Certainly, this agrees with my experiments so far where I have not found a way to garbage collect any embedded assets. Surely this can't be right? If its basically correct are there any work arounds?
Any help / pointers would be great !
Thanks