Hi!
Something that’s been bugging me is the fact that I can’t seem to remove exported library symbols from memory, if those symbols are from a loaded swf. For example:
//load an swf using Loader
swfLoader.load("mySwf.swf");
//after loaded use library symbol from said swf
var loadedSwfClass:Class = getDefinitionByName('IndentifierName') as Class;
var tempFieldContainer:Class = new loadedSwfClass();
tempFieldContainer.name = 'something';
stage.addChild(tempFieldContainer);
//remove references and unload swf
stage.removeChild(stage.getChildByName('something'));
tempFieldContainer = null;
loadedSwfClass = null;
swfLoader.unloadAndStop(true);
//it's still there!
var loadedSwfClass:Class = getDefinitionByName('IndentifierName') as Class;
var tempFieldContainer:Class = new loadedSwfClass();
stage.addChild(tempFieldContainer);
Everything is removed but the class definition still remains! Ideas?