<?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:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
]]>
</fx:Script>
<s:Panel title="Hello, flex!" width="600" horizontalCenter="0" verticalCenter="0">
<s:Button label="Click Me" click="Alert.show('Hello flex, I am coming!', 'Hello, flex!');" horizontalCenter="0" verticalCenter="0" />
</s:Panel>
</s:Application>
转载于:https://blog.51cto.com/332374363/1122304