3 Replies Latest reply on Jul 14, 2009 11:13 AM by Drew_CA

    Dispose / Remove Component




      I am new to flex and am creating a custom component that is basically a dialog box but has a OK / Cancel button built in.

      Maybe Flex has a similar component but there are other minor things I need to add so this is why I am creating a custom component.


      Basically when the user clicks CANCEL i would like to remove / dispose the dialog from the stage..

      Right now I am managing it through visibility but i dont think this is the best way.


      Is there a better way to self dispose of a component?