5 Replies Latest reply on May 30, 2010 11:30 PM by snkd

    not able to close this CustomComponet

    kiran7881 Level 1

      I have developed a MenuBar , upon clicking on the Menubar ,  i am displaying a appropiate  CustomComponent based on  Canvas as per our business requiremnet .

      For this I have captured the clic event on the MenuBar , and depending upon the menubar.dataprovider.label  data i am displaying a CustomComponent based on  Canvas .

      The logic is something like this

      <Mx:Menubar id ="menubar" click ="DisplayComponet()"/>

      public function DisplayComponet():void
      var cc:CustomComponent = new CustomComponent();

      But the Problem is that i am not able to close this CustomComponet , please tell me logic for this .




      Please share your ideas . Thanks in advance .