Hi Gerald,

It is quite simple

button2.addEventListener(MouseEvent.CLICK,function(e:MouseEvent){show(e)});

This may work

Regards,
Kashi


On Fri, Sep 25, 2009 at 11:07 AM, Gerald Anto <flex.gerald.a...@gmail.com>wrote:

>
> Shall we pass arguments to addEventListener method
>
> button2.addEventListener(MouseEvent.CLICK, show);
>
>
>  public function show(e:MouseEvent):void{
>   Aert.show("This is example for addEventListener");
>  }
>
> suppose i want to pass a String argument(named flex) to this method.
>
> is it possible? if so please tell me how to do it.
>
> Thanks&Regards,
> Gerald A
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to