http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email
Adobe Flex Builder 3.0.1
Professional Eclipse English | Windows |338.8MB
Plug-in
위 사이트에 접속하여 Eclipse plug-in을 다운 받고 설치한다.
Eclipse 실행 - windows - open perspective - others... - flex development
new - flex project
구구단 예제
flextest.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
function test(event:Event):void{
var dan:int = int(event.target.label);
var str:String="";
for(var i:int=1;i<=9;i++){
str += dan +"x"+ i +"="+ (dan*i) + "\n";
}
mx.controls.Alert.show(str);
}
]]>
</mx:Script>
<mx:Panel width="110" height="298" layout="absolute" horizontalCenter="0" verticalCenter="0" title="구구단보기">
<mx:Button label="2" click="test(event)" horizontalCenter="0" verticalCenter="-107" id="btn"/>
<mx:Button label="3" click="test(event)" horizontalCenter="0" verticalCenter="-76" id="btn3"/>
<mx:Button label="4" click="test(event)" horizontalCenter="0" verticalCenter="-46" id="btn4"/>
<mx:Button label="5" click="test(event)" horizontalCenter="0" verticalCenter="-14" id="btn5"/>
<mx:Button label="6" click="test(event)" horizontalCenter="0" verticalCenter="16" id="btn6"/>
<mx:Button label="7" click="test(event)" horizontalCenter="0" verticalCenter="46" id="btn7"/>
<mx:Button label="8" click="test(event)" horizontalCenter="0" verticalCenter="76" id="btn8"/>
<mx:Button label="9" click="test(event)" horizontalCenter="0" verticalCenter="106" id="btn9"/>
</mx:Panel>
</mx:Application>