Flex Óë servlet ͨÐÅ
servlet ¶Ë£º
String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
Flex ǰ̨¶Ë
<fx:Script>
<![CDATA[
import flash.trace.Trace;
private var loader:URLLoader = new URLLoader();
private function asCallHandler():void{
// URL
var url:String = "http://localhost/app01/getUser";
// ²ÎÊý
var args:URLVariables = new URLVariables();
args.userId = 1;
// RequestÇëÇó
var request:URLRequest = new URLRequest(url);
request.data = args;// °ó¶¨²ÎÊý
//ÇëÇó¼ÓÔØÆ÷
loader.addEventListener(Event.COMPLETE,handleServerResponse);
loader.load(request);//·¢ËÍÇëÇó
}
private function handleServerResponse(e:Event):void{
trace("User data is loaded");
// »ñÈ¡servletÖÐprintln()µÄÄÚÈÝ
debugText.text = loader.data;
}
protected function button1_clickHandler(event:MouseEvent):void
{
// ·¢ËÍÇëÇó
asCallHandler();
}
]]>
Ïà¹ØÎĵµ£º
flexÈýÖÖÁ¬¼¶·½Ê½:
ÄÚÁª£º<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="var codetxt:Text=new Text">
</mx:Application>
¼¶Áª£º<mx:Application xmlns:mx="http: ......
Ö÷³ÌÐò´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
xmlns:mdi="ext.containers.windows.mdi.*"
width="100%"
height= ......
Adobe Flash Builder 4 ¼òÌåÖÐÎÄÕýʽ°æ ÏÂÔØ:
http://subject.csdn.net/adobedownload/index.html
ʹÓÃÏà¹ØµÄÓò£¬ÀûÓÃAdobe Livecycle Designer´´½¨Ò»¸öPDFÄ£×飬ÒÔXML½ÚµÄÃû³Æ£¨ÓëPDFÄ£×éÖеÄÓòµÄÃû³ÆÆ¥Å䣩ÏòPDFÔ¶³Ì¶ÔÏó·¢ËÍXMLÊý¾Ý£¬È»ºóÄúµÄFlexÓ¦ÓóÌÐò¾Í»á´ò¿ªPDF, »ò½«PDFÎļþ·ÅÈëÄúµÄwebserv ......
Flex Viewer½âÎö-----Òý
FlexViewerÊÇESRI¹«Ë¾ÀûÓÃFlex¼¼Êõ£¬»ùÓÚ±¾ÉíÒÑ¿ª·¢ºÃµÄFlex API°ü¿ª·¢µÄÒ»¸ö³ÉÊìµÄWebGISʵÀý¿ò¼Ü¡£ÆäÍêÈ«ÊÇ¿ª·ÅµÄ£¬¿ÉÒÔ´Ó¹Ù·½ÍøÕ¾ÉϵÄCode GalleryÖ±½Óϵ½Ô´Âë¡£Ò²¿ÉÒÔ´Ó±¾È˵Ä×ÊÔ´µãÏÂÔØ¡£ÍøÖ·£º
http://download.csdn.net/source/2374602
ÏÂÔØÍê³Éºó½âѹֱ½Óµ¼ÈëAdobe Flex 3 BuilderÏîÄ¿¼ ......
2.2 ´úÂëʵÏÖ
ÏÂÃæ¸ø³öÁËFlexBuilder¹¤³ÌµÄÒ»¸öÎļþ£¬ÉèÖÃÁËFlashµÄ²¼¾Ö¡£
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
......