The label is not defined in this example. How can the label
be called without an error? (('right side with ' + event.label)"/)
Thanks for your time.

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>

 <mx:Script>
  public function showMsg(msg:String):void
  {
   mx.controls.Alert.show('You just clicked on ' + msg);
  }
 </mx:Script>

 <mx:Panel width="100" height="100">
  <mx:PopUpMenuButton id="menuBtn"
   dataProvider="{['One','Two','Three']}"
   click="showMsg('left side')"
   itemClick="showMsg('right side with ' + event.label)"/>
 </mx:Panel>
</mx:Application>

Reply via email to