GrafMine
09.10.2013, 21:09
Вопрос в том как отследить именно на какую кнопку с бара я нажал?
<s:ButtonBar requireSelection="true" height="70" dataProvider="{viewstackStation}" click="int(event)" />
//----
private function int(event:Event):void {
trace(event);
trace(event.target);
trace(event.currentTarget);
}
//Процесс нажатия двух разных кнопок с бара, как видим не за что зацепиться ;)
//Console:
[MouseEvent type="click" bubbles=true cancelable=false eventPhase=3 localX=68 localY=31 stageX=1129 stageY=57 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0 commandKey=false controlKey=false clickCount=0]
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2.ButtinCopy1222212.dataGroup.ButtonBarSkinCopy 1InnerClass0_449
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2
[MouseEvent type="click" bubbles=true cancelable=false eventPhase=3 localX=95 localY=36 stageX=976 stageY=62 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0 commandKey=false controlKey=false clickCount=0]
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2.ButtinCopy1222212.dataGroup.ButtonBarSkinCopy 1InnerClass0_445
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2
Может кто сталкивался с такой проблемой?
<s:ButtonBar requireSelection="true" height="70" dataProvider="{viewstackStation}" click="int(event)" />
//----
private function int(event:Event):void {
trace(event);
trace(event.target);
trace(event.currentTarget);
}
//Процесс нажатия двух разных кнопок с бара, как видим не за что зацепиться ;)
//Console:
[MouseEvent type="click" bubbles=true cancelable=false eventPhase=3 localX=68 localY=31 stageX=1129 stageY=57 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0 commandKey=false controlKey=false clickCount=0]
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2.ButtinCopy1222212.dataGroup.ButtonBarSkinCopy 1InnerClass0_449
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2
[MouseEvent type="click" bubbles=true cancelable=false eventPhase=3 localX=95 localY=36 stageX=976 stageY=62 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0 commandKey=false controlKey=false clickCount=0]
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2.ButtinCopy1222212.dataGroup.ButtonBarSkinCopy 1InnerClass0_445
test1.WindowedApplicationSkin3.Group4.contentGroup.Tabcomp383._Tabcomp_Group2.header._Tabcomp_ButtonBar2
Может кто сталкивался с такой проблемой?