文档介绍:flex布局组件--1.//flexApplication布局方式绝对定位::="horizontal"horizontalAlign="left/right/center"垂直定位:="verttical"horizontalAlign="left/right/center"verticalAlign="top/middle/bottom"paddingLeft="100"--距页面左边距为100paddingRight="100"--距页面右边距为100paddingTop="100"--距页面上边距为100paddingBottom="100"--距页面底边距为100---2.//flex的三个容器?xmlversion=""encoding="utf-8"?mx:Applicationxmlns:mx="layout="vertical"horizontalAlign="center"verticalAlign="middle"//绝对定位Canvasmx:Canvaswidth="50%"height="50%"horizontalScrollPolicy="on"verticalScrollPolicy="on"mx:Labeltext="容器"/mx:Buttonx="64"y="49"label="Button"//mx:Canvas//水平定位HBoxmx:HBoxwidth="30%"height="30%"mx:Buttonlabel="Button"/mx:Buttonlabel="Button"/:HBox/mx//垂直定位VBoxmx:VBoxwidth="30%"height="30%"mx:Buttonlabel="Button"/mx:Buttonlabel="Button"//mx:VBox/mx:Application--3.//用HDividedBox分割界面mx:HDividedBoxwidth="90%"height="90%"liveDragging="true"borderStyle="solid"x="10"y="10"mx:Canvaswidth="50%"height="50%"horizontalScrollPolicy="on"verticalScrollPolicy="on"mx:Labeltext="容器"/mx:Buttonx="64"y="49"label="Button"//mx:Canvasmx:HBoxwidth="30%"height="30%"mx:Buttonlabel="Button"/mx:Buttonlabel="Button"//mx:HBoxmx:VBoxwidth="30%"height="30%"mx:Buttonlabel="Button"/:Buttonlabel="Button"/mx/mx:VBox/mx:HDividedBox--4.//窗口布局panel窗体mx:Script~[CDATA[functiondoclose():void{//visible=false;//被点击的事件,点击时要经过两个阶段:捕获阶段,=false;}functionopen