| <s:TitleWindow | |
| xmlns:fx="http://ns.adobe.com/mxml/2009" | |
| xmlns:mx="library://ns.adobe.com/flex/mx" | |
| xmlns:s="library://ns.adobe.com/flex/spark" title="{titleStr}" | |
| width="300" height="400" controlBarVisible="true"> | |
| <fx:Script> | |
| <![CDATA[ | |
| [Bindable] | |
| public var titleStr:String="Event Test"; | |
| public var mouseDownStr:String="",mouseMoveStr:String="",mouseUpStr:String=""; | |
| override protected function moveArea_mouseDownHandler(event:MouseEvent):void | |
| { | |
| mouseDownStr="MoveAreaMD"; | |
| super.moveArea_mouseDownHandler(event); | |
| } | |
| override protected function moveArea_mouseMoveHandler(event:MouseEvent):void | |
| { | |
| mouseMoveStr="MoveAreaMM"; | |
| super.moveArea_mouseMoveHandler(event); | |
| } | |
| override protected function moveArea_mouseUpHandler(event:Event):void | |
| { | |
| mouseUpStr="MoveAreaMU"; | |
| super.moveArea_mouseUpHandler(event); | |
| } | |
| public function assertMouseEventPropertyNoChange():Boolean | |
| { | |
| if (mouseDownStr!="" || mouseMoveStr!="" || mouseUpStr!="") | |
| return false; | |
| else return true; | |
| } | |
| ]]> | |
| </fx:Script> | |
| <s:Group> | |
| <s:layout> | |
| <s:BasicLayout/> | |
| </s:layout> | |
| <s:Button id="childBtn" label="child" left="0" top="0" right="0" bottom="0"/> | |
| <s:Rect id="childBorder"> | |
| <s:stroke> | |
| <s:SolidColorStroke color="0x00FF00"/> | |
| </s:stroke> | |
| </s:Rect> | |
| </s:Group> | |
| <s:controlBarContent> | |
| <s:Label text="controlBar content"/> | |
| <s:Button id="button1" label="button1"/> | |
| <s:Button id="button2" label="button2"/> | |
| </s:controlBarContent> | |
| </s:TitleWindow> |