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