flex 34 jsp 연동 http://192.168.0.139/Webtest/flex/emp.jsp"/> scott 22-333-3453 scott@flex.com allen 24-233-3456 allen@flex.com smith 23-323-5675 smith@flex.com ford 25-323-3366 ford@flex.com john 27-333-5686 john@flex.com ward 27-243-2356 ward@flex.com IT기술/Flex 2008.11.28
flex 33 XMLList XMLListCollection ArrayCollection public var info:XML = scott 22-333-3453 scott@flex.com allen 24-233-3456 allen@flex.com smith 23-323-5675 smith@flex.com ford 25-323-3366 ford@flex.com john 27-333-5686 john@flex.com ward 27-243-2356 ward@flex.com public var list:XMLList = info.emp; public var xc:XMLListCollection = new XMLListCollection(list); public var ac:ArrayCollection = new ArrayCollection(xc.toArray()); ]]> IT기술/Flex 2008.11.28
flex 32 팝업창띄워서 데이터 받고 부모창에 Datagrid에 출력하기 windowPupUp.mxml //부모형 참조변수 팝업창에서 메인창의 메소드를 사용할때 public var ac:ArrayCollection; private function returnInfo():void { //3가지 정보 입력후 버튼을 누르면 실행되는 함수 ac.addItem({name:userName.text, phone:userPhone.text, email:userEmail.text}); //p.부모메소드(); PopUpManager.removePopUp(this); } ]]> windowMain.mxml private var point1:Point = new Point(); [Bindable]public var ac:ArrayCollection = new ArrayCollection(); pr.. IT기술/Flex 2008.11.28
flex 31 jsp flex연동 httpRequest.request={dan:uint(ns.value)}; httpRequest.send(); } ]]> IT기술/Flex 2008.11.27
flex 30 DataGrid 내용 수정하기 Christina Coenraets 555-219-2270 ccoenraets@fictitious.com true Joanne Wall 555-219-2012 jwall@fictitious.com true Maurice Smith 555-219-2012 maurice@fictitious.com false Mary Jones 555-219-2000 mjones@fictitious.com true public function editEnd(event:DataGridEvent):void{ var input:TextInput = TextInput(event.currentTarget.itemEditorInstance); //event.dataField; ti.text = input.text; } ]]> IT기술/Flex 2008.11.27
flex 29 키보드입력테스트 //프로그램이 완전히 출력 된 실행됨 event:KeyboardEvent):void{ t1.text = (String(event.charCode)); } public function keyDown(event:KeyboardEvent):void{ t2.text = (String(event.charCode)); } public function directionKey():void{ stage.addEventListener(KeyboardEvent.KEY_UP, test); } private var xx:int = 0; private var yy:int = 0; public function test(event:KeyboardEvent):void{ if(event.keyCode==Keyboard.UP){ img... IT기술/Flex 2008.11.27
flex 27 MenuBar test ; private function init():void{ menuBarCollection = new XMLListCollection(menubarXML); } private function menuHandler(event:MenuEvent):void{ if(event.item.@data != "top"){ var str:String = ""; for(var i:uint=1;i IT기술/Flex 2008.11.26
flex 26 Accordion, ViewStack, ButtonBar, LinkBar http://www.adobe.com/2006/mxml" layout="absolute"> click="accordion.selectedIndex=1;"/> click="accordion.selectedIndex=2;"/> click="accordion.selectedIndex=0;"/> click="viewstack1.selectedIndex=1;"/> click="viewstack1.selectedIndex=2;"/> click="viewstack1.selectedIndex=0;"/> IT기술/Flex 2008.11.25