Hi, I need help. Loader3D does not want to free memory.
Sample code:
//my mesh resource
[Embed(source="../../resources/angar/angar1.3DS", mimeType="application/octet-stream")] private const AngarM:Class;
.
.
.
.
//init loader
var angarRes:* = new AngarM();
loader = new Loader3D();
loader.loadData(new AngarM());
loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onLoadResource);
angarRes = null;
.
.
.
.
.
//clean memory
loader.removeEventListener(LoaderEvent.RESOURCE_COMPLETE, onLoadResource);
for (var i : int = 0; i < loader.numChildren; ++i)
{
loader.getChildAt(i).dispose();
}
loader.disposeAsset();
loader.dispose();
loader=null;
What am i doing not right?