Flex学习笔记PopUpMenuButton

时间:2021-07-27 10:29:26
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
public function showMsg(msg:String):void
{
Alert.show('你正在点击'+msg);
}
]]>
</fx:Script>
<mx:PopUpMenuButton id="menuBtn" dataProvider="{['One','Two','Three']}" click="showMsg('left side')" itemClick="showMsg('right side with'+event.label)"/> </s:Application>

Flex学习笔记PopUpMenuButton

PopUpMenuButton