1 Reply Latest reply on May 10, 2007 3:56 PM by Newsgroup_User

    Class and destructor

    OmniFlash
      How do I make a destructor function on a class?

      I can't use the onClipEvent(unload) in a CLASS so I thought why not make a destructor....

      Why can't I find a way to make one?
        • 1. Re: Class and destructor
          Level 7
          Deconstructors are not supported by ActionScript. Any clean up you will
          have to do manually. The garbage collector will automatically handle the
          object in memory when there are no more references to that object in code.

          "OmniFlash" <webforumsuser@macromedia.com> wrote in message
          news:f1u5tc$sh$1@forums.macromedia.com...
          > How do I make a destructor function on a class?
          >
          > I can't use the onClipEvent(unload) in a CLASS so I thought why not make a
          > destructor....
          >
          > Why can't I find a way to make one?