Hi there, I am working on Flex and need to get the button ID in function, do you have any ideas?
<?xml version="1.0" encoding="utf-8"?> <!-- FLEX 2 SOLUTION --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ private function getHandler():void{ //how to get the button ID name here => IAMAButton "x" ? } ]]> </mx:Script> <mx:Button id="IAMAButton1" label="validate" click="getHandler()" /> <mx:Button id="IAMAButton2" label="validate" click="getHandler()" /> <mx:Button id="IAMAButton3" label="validate" click="getHandler()" /> </mx:Application> _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

