abstraction Questions - StackExchangemost recent 30 from http://built4flash.stackexchange.com2010-07-30T04:52:03Zhttp://built4flash.stackexchange.com/feeds/tag/abstractionhttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://built4flash.stackexchange.com/questions/73/abstracting-event-currenttarget-idAbstracting event.currentTarget.idAndyC2009-12-07T14:11:56Z2010-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>