1 Reply Latest reply on Jul 24, 2007 6:39 AM by kglad

    How to close a movieclip in AS3?

      In AS2 i usually used the unloadMovie(this) funciton.
      I have searched the internet as well as the documentation but it refers to flash.display.Loader.unload()
      Which of course wont solve my problem :(

      Any tips?
        • 1. Re: How to close a movieclip in AS3?
          kglad Adobe Community Professional & MVP
          use removeChild() to remove your movieclip from the display list.

          to remove it from memory you must remove all references to it. so, set its references to null and remove all listeners and close all streams. it will then be garbage collected when memory use increases and the flash player decides it can use the memory occupied by your movieclip.