Flex Socket·¢ËͽÓÊÕÆæÊý¸öºº×Öβ²¿ÂÒÂëÎÊÌâ
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontSize="12" creationComplete="initApp()" width="369" height="326">
<mx:Script>
<![CDATA[
import flash.net.Socket; //µ¼ÈëÀà°ü
import flash.utils.ByteArray;//ByteArrayÔÚ¶ÁÈ¡Êý¾ÝʱʹÓÃ
private var socket:Socket=new Socket();//¶¨Òåsocket
internal function initApp():void
{
//Ö´ÐÐÁ¬½Ó,Ïò·þÎñ¶ËµÄServiceSocketµÄ8888¶Ë¿Ú·¢ËÍÁ¬½ÓÇëÇ󣬷þÎñ¶Ë¾Í»á·ÖÅäÒ»¸ö¶Ë¿Ú¸ø¿Í»§¶ËʹÓÃ
socket.connect("192.168.0.60",8888);
//¼àÌýÁ¬½Ó³É¹¦Ê¼þ
socket.addEventListener(Event.CONNECT,funConnect);
//¼àÌý¹Ø±Õʼþ
socket.addEventListener(Event.CLOSE,funClose);
//¼àÌý·þÎñÆ÷ÐÂÐÅÏ¢,½ÓÊÕ·þÎñ¶Ë·¢Ë͵ÄÐÅÏ¢
socket.addEventListener(ProgressEvent.SOCKET_DATA,funSocket);
}
internal function funConnect(e
Ïà¹ØÎÊ´ð£º
ÓеÄÅóÓÑÇëÁôÑÔ£¬Ð»Ð»ÁË¡£¡£
http://www.blogjava.net/vip01/archive/2008/02/26/182336.html
ÒýÓÃ
http://www.blogjava.net/vip01/archive/2008/02/26/182336.html
лÁË£¬ÎÒÔÙÕÒÕÒ£¬ÆäËû ......
Ò»¸öÈÝÆ÷µÄÒ»²àÓÐÒ»¸ö¼ýÍ·°´Å¥£¬µã»÷Ò»´Î°´Å¥£¬ÈÝÆ÷Òþ²Ø£¬ÔÙµã»÷ÈÝÆ÷³öÏÖ£¬Ð»Ð»
ÓÃTITLEWINDOW °ÑÄǸö´òXµÄͼƬ»»³É¼ýÍ·¾Í¿ÉÒÔÁË
µãһϰÑTITLEWINDOW µÄ¿í¶È±äС£¬ÔÚµãһϻ¹Ô¾ÍÐÐÁË
ÀûÓÃËü ......
1£º³ÌÐòÒÔ´ò³Éwar°ü(eclipse´òµÄ)
2£ºÔÚtomcatϲ¿Êðwar°ü£¬¿ÉÒÔÕý³£ÔËÐÐ
3£ºÍ¬ÑùµÄwar°ü£¬²¿Êðµ½websphereÉÏÔËÐÐʱ³öÒì³££¬
Òì³£Ö÷ÒªÐÅÏ¢ÈçÏ£º
´íÎóÐÅÏ¢£º(mx.messaging.messages::ErrorMessage)#0
......
ÎÒÏÖÔÚÏëÒªÓÃflex×öÒ»¸öÊ÷Ðβ˵¥Ð§¹û¡£Êý¾Ý¿â´ó¸ÅÈçÏ£º
id,name,parentid
1, XX×Ü»ú¹¹,0
2, XX·Ö»ú¹¹1,1
3, XX·Ö»ú¹¹2.1
4,XX·Ö»ú¹¹1.1£¬2
ÎÒÏë°ÑÉÏÃæµÄÊý¾Ý¶Á³öÀ´ÔÚflexÀï×ö³ÉÊ÷Ðνṹ£¬¸÷λ´óÏ ......
±¾ÈËÒª×öÒ»¸öССССµÄÓÎÏ·
ÔÚСÈ˵ÄÌøÔ¾·½Ãæ³öÏÖÁËÕÏ°
&nb ......