hello ravi thanks i have got it thanks Gerald Anto
On Mon, Apr 27, 2009 at 5:15 PM, Ravi Mishra <[email protected]> wrote: > > Hi Gerald, > > Write a customEvent Class and create a property named "id" there. Like > this > > public class customEvent extends Event{ > public var e_id:String; > > //Rest code of event > } > > Then add your buttons id to the e_id property of customEvent's > instance. > > public function btn_Click(e:MouseEvent):void{ > var evt:customEvent = new customEvent(); > evt.e_id = (e.currentTarget as Button).id > > dispatch(evt); > } > > HTH, > > -Ravi > > On Apr 27, 3:40 pm, Gerald Anto <[email protected]> wrote: > > hi jagadish, > > thanks > > but i want to pass a id value of button component to the main > > application > > please help me regards, > > > > Thanks&Regards, > > Gerald Anto > > > > On Apr 27, 10:59 am, Jagadish M <[email protected]> wrote: > > > > > Hi Gerald, > > > > > check the url it may help you.. > http://flexnflex.wordpress.com/2009/04/27/custom-events/ > > > > > On Mon, Apr 27, 2009 at 10:27 AM, Gerald Anto < > [email protected]>wrote: > > > > > > hello friends, > > > > i have set of buttons those have a click evevt in my application. > > > > now i need to separate component of those buttons together.when ever > i > > > > click the button it should perform the action.give me some idea about > > > > how to create custom events > > > > if possible give me some modal code > > > > > > Thanks&Regards, > > > > Gerald A > > > > > -- > > > Thanks & Regards, > > > > > Jagan Mady's > > > > > > > -- Thanks & Regards, A Gerald --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

