as3 remove defininton from applicationDomain

503 Views Asked by At

how to remove defintion from the applicationDomain !

In my test I removed all references about one class but the definition is still exist in the applicationDomain, how to remove it, because I think it occupy my memory~

by the way, I use the Profile tool in flash builder 4.6, after gc the class instance num is 0, but the definition is still exist in the applicationDomain.

very thanks if anyone can help me !

1

There are 1 best solutions below

3
Simon Eyraud On

Once you imported a definition into an application, unfortunately you cannot remove class definition. I just see two hacks :