<?xml version="1.0" encoding="utf-8"?>
<s:Button xmlns:fx="http://ns.adobe.com/mxml/2009" 
		  xmlns:s="library://ns.adobe.com/flex/spark" 
		  xmlns:mx="library://ns.adobe.com/flex/mx" >
	
	<fx:Declarations>
		<!-- 将非可视元素（例如服务、值对象）放在此处 -->
	</fx:Declarations>
	<fx:Script>
		<![CDATA[
			import mx.events.FlexEvent;
			
			//锁住查询按钮
			private function locked():void{
				this.enabled = false ;
				this.label = "查询中...";
			}
			//解锁查询按钮
			public function unLocked():void{
				this.enabled = true ;
				this.label = "查询";
			}
			
			override protected function clickHandler(e:MouseEvent):void{
				super.clickHandler(e);
				locked();
			}
		]]>
	</fx:Script>
</s:Button>
