336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="feedRequest.send();">
<mx:HTTPService id="feedRequest" url="http://localhost:8080/flex/get_xml_data.jsp" useProxy="false" />
<mx:Panel title="HTTPService Test" 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:Button label="xxxxx" click="mx.controls.Alert.show(Application.application.parameters.idx)" />
</mx:Panel>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
]]>
</mx:Script>
</mx:Application>
------------------------html 소스-------------------------
<embed src="jspHttpServicetxt.swf?idx=xxxxx" quality="high" bgcolor="#869ca7"
width="100%" height="100%" name="jspHttpServicetxt" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="feedRequest.send();">
<mx:HTTPService id="feedRequest" url="http://localhost:8080/flex/get_xml_data.jsp" useProxy="false" />
<mx:Panel title="HTTPService Test" 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:Button label="xxxxx" click="mx.controls.Alert.show(Application.application.parameters.idx)" />
</mx:Panel>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
]]>
</mx:Script>
</mx:Application>
------------------------html 소스-------------------------
<embed src="jspHttpServicetxt.swf?idx=xxxxx" quality="high" bgcolor="#869ca7"
width="100%" height="100%" name="jspHttpServicetxt" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
--예시--
'컴터 > Flash & Flex' 카테고리의 다른 글
한글 깨짐 해결 (2) | 2008.05.14 |
---|---|
flex 내에서 디비쪽으로 변수값 보내기 (0) | 2008.05.13 |
URL 떠오기 (0) | 2008.05.12 |
xml 읽어와 뿌리기 (creationComplete, result , fault) (0) | 2008.05.11 |