Hi , The change event in the tree is of type mx.events.ListEvent<../../../mx/events/ListEvent.html>. It won't get casted to MouseEvent type in:
private function treeChanged(event:MouseEvent):void > > nd vice-versa in: private function handleItemDoubleClickEvent(event:ListEvent):void Even, after correcting this you cannot call handleItemDoubleClickEvent(event), form the treeChanged() For that either you need to use the super class Event as the type of argument in your handler functions or you can just say in the treeChanged(). treeID.dispatchEvent(new MouseEvent(MouseEvent.DOUBLE_CLICK)). On Mon, Oct 5, 2009 at 12:08 PM, vandana flex <[email protected]> wrote: > > private function handleItemDoubleClickEvent(event:ListEvent):void { > // something > } > > private function treeChanged(event:MouseEvent):void { > // something > handleItemDoubleClickEvent(event) > } > > i want to use handleItemDoubleClickEvent() in treeChanged(), but it is > throwing error... > How to do that? > > Any Help.......???? > > Regards > Vandana > > > > -- Thanks, Vaibhav Seth. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

