I created 2 buttons in the ItenRenderer of a tree and cant get the 
click work on those two buttons.

I simply wrote something like this.

   override protected function createChildren():void{ 
        myEditButton = new Button()
        myEditButton.addEventListener(MouseEvent.CLICK,editNode)
        this.addChild(myEditButton)
   }
When I Click on the a tree item. I can see the event easily like this.

   override protected function createChildren():void{ 
        this.addEventListener(MouseEvent.CLICK,editNode)
   }
        

I dont understand why the TreeItemRenderer is keeping the mouseClick 
for himself.


Reply via email to