do you declare or save the as files?
since you do removeChild, you keep a list of them somewhere, do you clear it as 
well?
if you want destroy the mesh, make sure you remove the events if they have 
some, then nullify their geometry, then nullify them.

Fabrice

On Apr 11, 2011, at 11:32 PM, Nathan Queija wrote:

> I tried, but doesn't work because the class exportes doesn't has this
> method.
> 
> I get this error:
> 1061: Call to a possibly undefined method dispose through a reference
> with static type lojas:ModelAB.
> 
> Thanks for help!
> 
> 
> On 11 abr, 18:28, Josh Beckwith <josh.beckw...@gmail.com> wrote:
>> Try target.dispose();
>> 
>> On Apr 11, 1:15 pm, Nathan Queija <nathanq...@gmail.com> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hi guys!
>>> I have an object container, that all its children are at least 50
>>> models, exported from Prefab as an .as file.
>>> That's nice! It works prefectly!
>>> The problem is: I want to remove all these children and add some
>>> others, but when I do this the memory increase each time more and it
>>> seems that never remove the reference to the other models loaded.
>>> How can I fix this?
>>> I ever tried, removechild(), set instance to null, I thought that was
>>> the material of these objects, but I tried to not apply any material
>>> and this thing still continue happens.
>>> Please, help me! =)
>>> Sorry for the bad english!
>>> Thanks so much!

Reply via email to