flexÓëºǫ́Java½»»¥
Ôõô½â¾öflexÓëJava´úÂë½»»¥Ê±µÄÒ첽ͨÐÅÎÊÌ⣿£¿³ýÁË°Ñ·½·¨·ÅÈëresultÖл¹ÓÐʲô°ì·¨£¿
AbstractOperationµÄsend()·½·¨·µ»ØÒ»¸öAsyncToken¶ÔÏ󣬶øResultEventÒ²ÓÐtokenÊôÐÔ£¬ËüºÍsend()·½·¨·µ»ØµÄAsyncTokenÊÇͬһ¸ö¶ÔÏó¡£
¶¨ÒåÒ»¸ö Dictionary :
private var asyncTokens:Dictionary = new Dictionary();
RemoteObject£º
var operation:AbstractOperation = remoteObject.getOperation(methodName);
var token:AsyncToken = null;
operation.arguments = args;
token = operation.send();
asyncTokens[token] = {method: methodName, arguments: args};
HTTPService:
var token:AsyncToken = service.send(xml);
asyncTokens[token] = {requestData: xml};
È»ºó£º
private function resultHandler(event:ResultEvent):void
{
trace(asyncTokens[event.token].method);
trace(asyncTokens[event.token].args);
......
delete asyncTokens[event.token];
}
private function faultHandler(event:FaultEvent):void
{
delete asyncTokens[event.token];
}
ÓÃweb servers»òÕßremote·½Ê½
1·Ö...
Ò첽ͨÐźÃÏñ²»Ì«Á˽⣬µ«ÊÇFlexÓëJava½»»¥½¨ÒéÓÃBlazeDS£¬Ð§¹ûÁ¼ºÃ¡£
Ïà¹ØÎÊ´ð£º
ÎÒµÄjava applet ǶÈëhtmlºóÎÞ·¨ÏÔʾ£¬¶øÓÃappletviewerÏÔʾÕý³£ÎªÊ²Ã´£¬»¹ÓоÍÊÇÓÃhtml converterת»¯ºó¿ÉÒÔÏÔʾ£¬ÎªÊ²Ã´£¿Çë´óÏÀ´Í½Ì£¡
HTML code:
<HTML>
<HEAD>
<TITLE>TEST.HTML< ......
ÓÃRandomAccessFileдÈëTXTÎļþ²é¿´Ê±ÊÇÂÒÂ룬ÇëÎÊÓÐʲô·½·¨¿ÉÒÔд³É¿É¶ÁµÄÎļþ£¬²»ÊÇÓÃÆäËûµÄÎļþ²Ù×÷£¬¾ÍÊÇÖ»ÓÃRandomAccessFileµÄ·½·¨ÊÇ·ñ¿ÉÒÔʵÏÖ£¿
Java code:
import java.io.*;
public class RandomAcce ......
ÎÒÏëÓÃJavaдһ¸ö³ÌÐò£¬¾ÍÊÇÎÒÏëÔÚÔËÐдúÂëºó£¬ÔÚÖ¸¶¨µÄʱ¼ä´ò¿ªÄ³³ÌÐò£¬ÀýÈçÎÒÔËÐдúÂëºó£¬½²ÔÚ12£º00´ò¿ª"D:\Program Files\Tencent\QQ2009\Bin\QQ.exe"Õâ¸ö³ÌÐò£¬Çó¸ßÈËÖ¸µã¡£»¹ÓпÉÄܵĻ°ÔÚÖ¸¶¨µÄʱ¼ä ......
ÎÒÏëÎÒjavaÕâÒ»·½Ãæ·¢Õ¹£¬ÓÐÄÄһλ¸ßÊÖ¿ÉÒÔ¸æËßÎÒ£¬Ïë³ÉΪһÃûJAVA±à³Ì¸ßÊÖ£¬Ëû±ØÐëҪѧϰµÄ֪ʶÂ𣿱ÈÈç˵ÎÒѧÍêÁËJAVAµÄ»ù´¡ÖªÊ¶Ö®ºóÎҸðÑÄ¿¹â·ÅÔÚÄÄÒ»·½Ã棬½ÓÏÂÀ´ÎÒÔÚѧϰÓйØJAVAµÄʲô֪ʶ£¿ÅóÓÑà ......
ÎÒÐèÒªÔÚÒ»¸öforÑ»·ÀïÃæÿѻ·Ò»´Îºó,ÔÝÍ£nÃëÖÓ,ÔÙÖ´ÐÐÏÂÒ»´ÎÑ»·.ÎÒ²»ÏëÓÃThread.sleep(n);Õâ¸ö·½·¨,ÇëÎÊ»¹ÓÐÆäËûµÄ·½·¨¿ÉÒÔʵÏÖÕâ¸ö¼òµ¥ÒªÇóÂð?Óмòµ¥´úÂë¸üºÃ,лл!
ÆÚ´ýºÃµÄ·½·¨£¡
ÎÒÖªµÀµÄÒ²¾ÍÊÇÕâ¸öÁË
......