Wednesday, September 12, 2007

Ridding MCs.

AS3: Getting rid of movie clips.

As far as I know, there IS NO WAY. No way to perminently delete it from Flash, anyways. The best you can hope for is clearing every existing variable that references to the clip, then going removeChild(clip) and deleting all listeners that listen for the clip (because they keep an instance of the clip).

Posted by johnfn at 20:33:23
Comments

2 Responses to “Ridding MCs.”

  1. Anonymous says:

    Yeah, the absence of removeMovieClip is pretty annoying…

  2. James says:

    If you delete all references to the variable, then garbage collection should remove it from the heap.

    :-)

Leave a Reply