2007년 06월 05일
Flex Ant Task
# by 이건또뭐야 | 2007/06/05 08:51 | FLEX | 트랙백 | 덧글(0)
2007년 05월 04일Repeater사용하기
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"➥ layout="vertical" creationComplete="bookData.send()"> <mx:Script> <![CDATA[ private function getBookData(repeatData:String):void { nameLabel.text = repeatData; } ]]> </mx:Script> <mx:HTTPService id="bookData" url="assets/books.xml" /> <mx:Repeater id="bookRepeater"➥ dataProvider="{bookData.lastResult.books.stock}"> <mx:Label➥ text="{bookRepeater.currentIndex + 1}➥ {bookRepeater.currentItem}" /> <mx:Button label="Add to Cart"➥ click="getBookData(event.target.getRepeaterItem())" /> </mx:Repeater> <mx:Label id="nameLabel" /> </mx:Application> # by 이건또뭐야 | 2007/05/04 00:32 | FLEX | 트랙백 | 덧글(0) 2007년 05월 04일DataGrid에 action집어 넣기
private function changeHandler(evt:Event):void {
book_name.text = evt.target.selectedItem.book_name; author_name.text = evt.target.selectedItem.author; cover_picture.source = evt.target.selectedItem.cover; } <mx:DataGrid x="200" y="55" width="30%" dataProvider="{bookTitles}" rowCount="5" change="changeHandler(event)"> # by 이건또뭐야 | 2007/05/04 00:31 | FLEX | 트랙백 | 덧글(0) 2007년 05월 03일DataGridColumn을 다양하게 편집하기
1. TextArea
<mx:DataGridColumn dataField="review" headerText="New Reviews" editable="true" itemEditor="mx.controls.TextArea" /> 2. 별도의 콘테이너 제작 <mx:VBox>로 제작된 ReviewForm 제작 <mx:DataGridColumn dataField="review" headerText="New Reviews" editable="true" itemRenderer="ReviewForm" /> # by 이건또뭐야 | 2007/05/03 23:47 | FLEX | 트랙백 | 덧글(0) 2007년 05월 03일DataGrid에 dateFormat 설정하기<mx:DateFormatter id="publishDate" formatString="MMMM DD, YYYY" /> # by 이건또뭐야 | 2007/05/03 23:43 | FLEX | 트랙백 | 덧글(0) 2007년 04월 28일동적으로 생성하기2private function init():void { private function comTest():void{ # by 이건또뭐야 | 2007/04/28 00:14 | FLEX | 트랙백 | 덧글(0) 2007년 04월 28일컴포넌트 동적으로 생성하기import RMGConnection.Services.*; var fooRMGTest:RMGTest = null; var myClass:Class = flash.utils.getDefinitionByName("RMGTest"); # by 이건또뭐야 | 2007/04/28 00:02 | FLEX | 트랙백 | 덧글(0)
| ||||