목록flex (26)
특별한딸기이야기
MyButton.as package Mycontrols { import mx.controls.Button; import mx.controls.Alert; public class MyButton extends Button { private var m_str : String; public function MyButton() { super(); m_str = ""; } public function setM_str(str : String) : void { m_str = str; } public function getM_str() : String { return m_str; } public function showStr() : void { Alert.show(m_str); } } } Study.mxml
MultiButton.mxml [Event(name="btn1Clicked", type="flash.events.Event")] [Event(name="btn2Clicked", type="flash.events.Event")] [Event(name="btn3Clicked", type="flash.events.Event")] [Event(name="btn4Clicked", type="flash.events.Event")] Study.mxml
MyTextInput.mxml Study.mxml
player.mxml Study.mxml
MyButton.mxml Study.mxml
flex Bard jsp
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; private function onClick() : void { getXml.send(); } private function onResult(event : ResultEvent) : void { txtResult.text = event.result.toString(); } private function onFault(event : FaultEvent) : void { txtResult.text = event.fault.toS..
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private function onClick() : void { getData.send(); } private function onResult(event : ResultEvent) : void { txtResult.text = event.result.toString(); } private function onFault(event : FaultEvent) : void { txtResult.text = event.fault.to..
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function draw() : void { var g : Graphics = imgDraw.graphics; g.beginFill(0xff00ff); g.lineStyle(5, 0x00ff00); g.drawCircle(20, 20, 20); g.moveTo(10, 10); g.lineTo(40, 60); g.endFill(); g.beginFill(0x0000ff); g.drawRect(30, 40, 20, 20); g.endFill(); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function onChange() : void { var msg : String; msg = "selectedIndex - " + String(tlistFruits.selectedIndex) + "\n"; msg += "selectedItem.code - " + String(tlistFruits.selectedItem.code) + "\n"; msg += "selectedItem.label - " + String(tlistFruits.selectedItem.label) + "\n"; Alert.sh..
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function onChange() : void { var msg : String; msg = "selectedIndex - " + String(cmbFruits.selectedIndex) + "\n"; msg += "selectedItem.code - " + String(cmbFruits.selectedItem.code) + "\n"; msg += "selectedItem.label - " + String(cmbFruits.selectedItem.label) + "\n"; Alert.show(msg)..
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function onChange() : void { var msg : String; msg = "selectedIndex - " + String(lstFruits.selectedIndex) + "\n"; msg += "selectedItem.Code - " + String(lstFruits.selectedItem.code) + "\n"; msg += "selectedItem.Label - " + String(lstFruits.selectedItem.label); Alert.show(msg); ..
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChange() : void { lblChoose.text = String(nsFigure.value); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChange() : void { lblColor.setStyle("color", cpkColor.selectedColor); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChange() : void { txtDate.text = String(dcDate.selectedDate.fullYear) + "/" + String(dcDate.selectedDate.month + 1) + "/" + String(dcDate.selectedDate.date); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChnage() : void { //txtDate.text = dcDate.selectedDate.toString(); txtDate.text = String(dcDate.selectedDate.fullYear) + "/" + String(dcDate.selectedDate.month + 1) + "/" + String(dcDate.selectedDate.date); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function keyboardEvent(event : KeyboardEvent) : void { lblMsg.text = event.type + " code = " + String(event.keyCode); } ]]>
100) { i = 0; } prgClick.setProgress(i, 100); txtValue.text = String(i); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function resize() : void { button.width = sliderH.value; button.height = sliderV.value; } ]]>
http://www.adobe.com/2006/mxml" layout="absolute">
구글]]>
@Embed('/Image/download[4].jpg')
http://www.adobe.com/2006/mxml" layout="absolute"> private function textareaChange() : void { textareaStatus.text = "입력중 : " + textarea.length; } ]]> editable="true" enabled="true"/>
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function checkAlert() : void { if(check.selected == true) { Alert.show("체크 박스를 선택하셨습니다."); } } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function select() : void { // radio button select if(radioFruitApple.selected == true) { Alert.show("사과를 선택하셨습니다."); } if(radioFruitPear.selected == true) { Alert.show("배를 선택하셨습니다."); } if(radioFruitBanana.selected == true) { Alert.show("바나나를 선택하셨습니다.");..