tags:

views:

2

answers:

0

I am trying to catch what label was pressed, but instead of label instance in event target I am getting BorderContainerSkin instance.

Any comment will be appreciated

    <s:BorderContainer  click="select(event)">
        <s:Label/>
        <s:Label/>
        <s:Label/>
    </s:BorderContainer>

private function select(event:MouseEvent):void { event.target //BorderContainerSkin instance event.currentTarget //BorderContainer instance }