LFEX 이벤트 메커니즘 및 이벤트 등록 채널 인 스 턴 스

<?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" creationComplete="init()">
	<s:layout>
		<s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
	</s:layout>
	<fx:Script>
		<![CDATA[
			import mx.controls.Alert;
			import mx.events.FlexEvent;
			
			//             creationComplete="init()"
			protected function init():void
			{
				btn1.addEventListener(MouseEvent.CLICK,clickHandler);
			}
			
			//                     
			protected function clickHandler(event:MouseEvent):void
			{
				Alert.show("  CLICK  ","  ");
			}
			
		    //          
			private function mouseOutEvent():void
			{
				Alert.show("  MOVE  ","  ");
			}
		]]>
	</fx:Script>
	<s:Button id="btn1" label="         ,  OVER      " mouseOut="mouseOutEvent()"/>
</s:Application>

 
업무 축적  윤 당

좋은 웹페이지 즐겨찾기