abstraction Questions - StackExchange most recent 30 from http://built4flash.stackexchange.com 2010-07-30T04:52:03Z http://built4flash.stackexchange.com/feeds/tag/abstraction http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://built4flash.stackexchange.com/questions/73/abstracting-event-currenttarget-id Abstracting event.currentTarget.id AndyC 2009-12-07T14:11:56Z 2010-07-25T07:23:22Z <p>I have a sports site with several datagrids that list players. I want to drilldown on a player's name to obtain more info about him with a function like</p> <p>private function moreInfo(event:ListEvent):void { trace (event.currentTarget.id);</p> <p>svc.getPlayerByYear(dg1.selectedItem.nameID);</p> <p>}</p> <p>where dg1 is the datagrid id and shows up in the trace.</p> <p>I wish to extend this to other datagrids e.g. dg2 by using the (event.currentTarget.id) in the service call but have so far failed to find the correct method of binding, brackets or whatever is required</p> <p>Cheers</p>