hi
simply try this one

button2.addEventListener(MouseEvent.CLICK, show);
this.addEventListener("myDataEvent", passData);

>
>
>  public function show(e:MouseEvent):void{
>   this.dispatchEvent(new DataEvent("myDataEvent",false,false,"flex");
>  }


    public function passData(eve:DataEvent):void{
    Alert.show("hiii"+eve.data);

 }




On Fri, Sep 25, 2009 at 6:54 PM, Gerald Anto Fernando <
[email protected]> wrote:

> Hi Kashi,
> can you please say detailed description for your syntax.
> am expecting your reply.
>
> Thanks&Regards,
> Gerald A
>
> On Fri, Sep 25, 2009 at 12:32 PM, kashinath pai <[email protected]>wrote:
>
>> 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 <[email protected]
>> > 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
>>>
>>>
>>
>>
>
>
> --
> Thanks & Regards,
> A  Gerald
>
>
> >
>


-- 
Hi,

PFA my Resume and respond if you find my profile matching with your
requirement.
Looking forward for a positive response.

Thanks & Regards
Manish J. Sankhe
9717004149

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to