3 Replies Latest reply on Feb 2, 2007 1:07 AM by Peter Lorent

    Class Destructors

    SymTsb Level 2
      Working on a window class for my project here.

      My window class has a destructor that cleans up the main movie clip container. Inside each window I create, there is a close button (created dynamically by the class). I am trying to add an event handler to this button that will call the classes destructor and delete my window. As of now, I haven't been able to figure this one out. I figured it would just be a simple call to the destructor but it's not. My code is attached below for the destructor and the close button. Any help is appreciated.