Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flex

FlexÖеĶàÏß³ÌÎÊÌâ¡£

Ò³ÃæÖÐÓжà¸öTImer£¨ ÓÿɿÉÒÔÉèÖÃTimerÊýÁ¿£©
·Ö±ð¶¨Ê±´Ó·þÎñÆ÷È¡µÃÊý¾Ý£¬²¢ÀûÓÃÈ¡µÃµÄÊý¾Ý¸üÐÂÒ»¸öArray¶ÔÏó¡¢
ÓÉÓÚÍøÂçºÍ·þÎñÆ÷µÄÑÓ³ÙµÈÔ­Òò¡£
ÓпÉÄܼ¸¸öTimerͬʱ·µ»Ø½á¹û£¬ÕâÑù¾Íµ¼ÖÂÁ˶ÔArray¶ÔÏóµÄ²¢·¢·ÃÎÊ¡£

ÇëÎÊFlexÊÇ·ñÓв¢·¢¿ØÖƲßÂÔ£¿

ÀàËÆÓÚ.netÖеÄLockÕâÑùµÄ¹¦ÄÜ£¡
flexûÓжàÏß³ ......

¼±£¡£¡Flex SocketÈçºÎ·¢ËÍbyteÊý×é

ÈçÌâ¡£

Íû¸ßÊÖ²»Áߴͽ̡£

ÓдúÂë²ÅÓÐÕæÏ࣬лл¡£
¶¨Òå
private var ClientSocket:Socket = new Socket;

¡£¡£¡£

·¢ËͲ¿·Ö

ClientSocket.connect("192.168.13.234", 6666);//Ö´ÐÐÁ¬½Ó
//¼àÌýÁ¬½Ó³É¹¦Ê¼þ
ClientSocket.addEventListener(Event.CONNECT,funConnect) ......

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&g ......

JSÊý×é ÈçºÎת»»³ÉflexµÄÊý×飿

ÈçÌâ
ÎÒÏë´ÓjsÖлñÈ¡Ò»¸öÊýÖµ£¬È»ºó´«µÝ¸øflex£¬Êý¾ÝÊÇÓÃÀ´×öͼ±íÓõÄ
ÎÊÌâ¾ÍÊÇ
private var medalsAC:ArrayCollection = new ArrayCollection( [
            { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
            ......

¸ßÈËÀ´½â¡£FlexÊý¾Ýת³É16½øÖÆ×Ö·û´®£¡

ÏÖÓÐflex SocketСÏîÄ¿Ò»¸ö
server¶Ë·µ»ØÊý¾Ý

Èç¹ûÓÃintÕûÐÎÀ´½ÓֵΪ

-1 -5 1 -1 -5 3

ÈôÓÃByteArray½ÓÖµ¡£Ñ­»·ºóµÃ³ö

255 251 1 255 251 3


ÏÖÇóÖúʵÏÖһϹ¦ÄÜ
²»ÂÛÓÃÒÔÉÏÄÇÖÖÊý¾ÝÀàÐÍ
ÎÒÏë°ÑÒÔÉÏ6¸ö×Ö·ûת³É16½øÖƵÄ×Ö·û´®ÐÎʽ

¼´  0xFF, 0xFB, 0x01, 0xFF ......

flex stageÎÊÌâ

package cs
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;

    public class StageExample extends Sprite {

      ......
×ܼǼÊý:266; ×ÜÒ³Êý:45; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [34] [35] [36] [37] 38 [39] [40] [41] [42] [43]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ