Newbie here (sorry),
I'd like to setup a ComboBox (in one panel) listen to the user selecting
an item from a Tree (that is on another Panel component, but on the same
screen). However, there are two tree components in the app. Is there way
to have the ComboBox only listen to one of the trees and ignore the
other. Or how do I set it up? Example:
<mx:Script>
<![CDATA[
public function init():void { //called on creationComplete of
Application
combo.addEventListener( "what listener do I choose here for tree1",
myfunction);
}
public function myfunction( e:TreeEvent ):void {
//do stuff here
}
]]>
</mx:Script>
<mx:Panel>
<mx:ComboBox id="combo" />
</mx:Panel>
<mx:Panel>
<mx:Tree id="tree1" />
</mx:Panel>
<mx:Panel>
<mx:Tree id="tree2" />
</mx:Panel>
Thanks ahead of time,
Anthony