336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:HTTPService id="feedRequest" url="http://localhost:8080/flex/get_xml_data.jsp" useProxy="false">
<mx:request>
<id>{cb.selectedItem}</id> <!--cb 콤보박스의 선택된값을 id 라는변수에 담아서 보내라-->
</mx:request>
</mx:HTTPService>
<mx:Panel title="HttpService" height="100%" width="90%" paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10" layout="vertical">
<mx:DataGrid id="dgPosts" dataProvider="{feedRequest.lastResult.result_set.record}" width="100%" />
<mx:ControlBar horizontalAlign="center">
<mx:Label text="ID 선택" />
<mx:ComboBox id="cb" change="feedRequest.send();">
<mx:ArrayCollection>
<mx:String>0</mx:String>
<mx:String>1</mx:String>
<mx:String>2</mx:String>
<mx:String>3</mx:String>
<mx:String>4</mx:String>
<mx:String>5</mx:String>
</mx:ArrayCollection>
</mx:ComboBox>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:HTTPService id="feedRequest" url="http://localhost:8080/flex/get_xml_data.jsp" useProxy="false">
<mx:request>
<id>{cb.selectedItem}</id> <!--cb 콤보박스의 선택된값을 id 라는변수에 담아서 보내라-->
</mx:request>
</mx:HTTPService>
<mx:Panel title="HttpService" height="100%" width="90%" paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10" layout="vertical">
<mx:DataGrid id="dgPosts" dataProvider="{feedRequest.lastResult.result_set.record}" width="100%" />
<mx:ControlBar horizontalAlign="center">
<mx:Label text="ID 선택" />
<mx:ComboBox id="cb" change="feedRequest.send();">
<mx:ArrayCollection>
<mx:String>0</mx:String>
<mx:String>1</mx:String>
<mx:String>2</mx:String>
<mx:String>3</mx:String>
<mx:String>4</mx:String>
<mx:String>5</mx:String>
</mx:ArrayCollection>
</mx:ComboBox>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
'컴터 > Flash & Flex' 카테고리의 다른 글
source="@Embed(source='')" 와 source="" 의 차이 (0) | 2008.05.15 |
---|---|
한글 깨짐 해결 (2) | 2008.05.14 |
flash 에서 GET 으로 변수값 전달시 받아 사용할때 (0) | 2008.05.13 |
URL 떠오기 (0) | 2008.05.12 |