Ò³ÃæÖÐÓжà¸öTImer£¨ ÓÿɿÉÒÔÉèÖÃTimerÊýÁ¿£©
·Ö±ð¶¨Ê±´Ó·þÎñÆ÷È¡µÃÊý¾Ý£¬²¢ÀûÓÃÈ¡µÃµÄÊý¾Ý¸üÐÂÒ»¸öArray¶ÔÏó¡¢
ÓÉÓÚÍøÂçºÍ·þÎñÆ÷µÄÑÓ³ÙµÈÔÒò¡£
ÓпÉÄܼ¸¸öTimerͬʱ·µ»Ø½á¹û£¬ÕâÑù¾Íµ¼ÖÂÁ˶ÔArray¶ÔÏóµÄ²¢·¢·ÃÎÊ¡£
ÇëÎÊFlexÊÇ·ñÓв¢·¢¿ØÖƲßÂÔ£¿
ÀàËÆÓÚ.netÖеÄLockÕâÑùµÄ¹¦ÄÜ£¡
flexûÓжàÏß³ ......
ÈçÌâ¡£
Íû¸ßÊÖ²»Áߴͽ̡£
ÓдúÂë²ÅÓÐÕæÏ࣬лл¡£
¶¨Òå
private var ClientSocket:Socket = new Socket;
¡£¡£¡£
·¢ËͲ¿·Ö
ClientSocket.connect("192.168.13.234", 6666);//Ö´ÐÐÁ¬½Ó
//¼àÌýÁ¬½Ó³É¹¦Ê¼þ
ClientSocket.addEventListener(Event.CONNECT,funConnect) ......
<?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&g ......
ÈçÌâ
ÎÒÏë´ÓjsÖлñÈ¡Ò»¸öÊýÖµ£¬È»ºó´«µÝ¸øflex£¬Êý¾ÝÊÇÓÃÀ´×öͼ±íÓõÄ
ÎÊÌâ¾ÍÊÇ
private var medalsAC:ArrayCollection = new ArrayCollection( [
{ Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
......
ÏÖÓÐflex SocketСÏîÄ¿Ò»¸ö
server¶Ë·µ»ØÊý¾Ý
Èç¹ûÓÃintÕûÐÎÀ´½ÓֵΪ
-1 -5 1 -1 -5 3
ÈôÓÃByteArray½ÓÖµ¡£Ñ»·ºóµÃ³ö
255 251 1 255 251 3
ÏÖÇóÖúʵÏÖһϹ¦ÄÜ
²»ÂÛÓÃÒÔÉÏÄÇÖÖÊý¾ÝÀàÐÍ
ÎÒÏë°ÑÒÔÉÏ6¸ö×Ö·ûת³É16½øÖƵÄ×Ö·û´®ÐÎʽ
¼´ 0xFF, 0xFB, 0x01, 0xFF ......
package cs
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
public class StageExample extends Sprite {
  ......