I have different ‘teamMember’ classes which adds a movieclip portrait, say ‘memberPortrait’.
So teamMember1.memberPortrait, teamMember2.memberPortrait, etc.
I need to add an eventListener to ‘memberPortrait’ which will dynamically call up the teamMember it belongs to, so I can then make that teamMember do something else.
public function addToTeam(e:MouseEvent):void
var activeTeamMember= e.currentTarget.parent;
e.currentTarget.parent is the line I’m concerned with… I’m trying to refer to the object that contains the e.currentTarget.