Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flex²¶»ñÒì³£ÎÊÌâ

        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);
        }


ÕâÊÇÒ»¶ÎFlex Socket´úÂë

ÏÖÔÚ³öÏÖµÄÎÊÌâÊÇÈç¹û³ÌÐòÔËÐеĻúÆ÷ÉÏÍøÏßûÓвå

ÔËÐÐÕâ¶Î´úÂëµÄʱºòFlesh Debug»áµ¯³öÒì³£´°¿Ú¡£

Õâ¸öÒì³£ÎÒ¸ÃÈçºÎ²¶»ñ²¢½øÐÐÓѺÃÌáʾ£¨±ÈÈçÓÃalert.showÀ´ÌáʾÐÅÏ¢£©£¿ Íû¸ßÊִͽÌ
socket.addEventListener(IOErrorEvent.IO_ERROR, funIOError);
socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, funError);
private function funError(e:SecurityErrorEvent):void

  Alert.show(e.text);
}
private function funError(e:SecurityErrorEvent):void


Ïà¹ØÎÊ´ð£º

¹ØÓÚflex ¹¤³Ìµ¼ÈëÒÑÓеÄJ2EEÏîÄ¿ÖÐ ÅäÖùý³ÌÖб¨´í

Flex ¹¤³ÌÊÇͨ¹ýFlex Builder 3.0ÔÚeclipseÖеIJå¼þ¿ª·¢µÄ¡£FlexÏîÄ¿ÊÇÄܹ»Õý³£¶ÀÁ¢ÔËÐеġ£µ«ÊǸù¾ÝÐèÇó£¬Òª½«´ËFlexÏîÄ¿Ó¦Óõ½Ò»¸öJ2EEÏîÄ¿À°´ÕÕ²Ù×÷˵Ã÷£º

µã»÷¡°Flex project nature¡±,Ñ¡Ôñ¡°add Flex ......

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

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

Ò³ÃæÖÐÓжà¸öTImer£¨ ÓÿɿÉÒÔÉèÖÃTimerÊýÁ¿£©
·Ö±ð¶¨Ê±´Ó·þÎñÆ÷È¡µÃÊý¾Ý£¬¸üÐÂÒ»¸öArray±äÁ¿¡¢
Õ⼸¸öTimerÓпÉÄܵ¼Ö²¢·¢µÄ¶ÔArray±äÁ¿·ÃÎÊ¡£

ÇëÎÊFlexÊÇ·ñÓв¢·¢¿Ø ......

flex ½ÓÊÕ²ÎÊýµÄÎÊÌâ

    flexÈçºÎ½ÓÊÕhtmlÀïµÄ²ÎÊý¡£Ïêϸ˵Ã÷һϡ£ÎÒÓÃBlaedzȥȡremoteObject£¬Ô¶³Ì¶ÔÏóÊÇÓÃjavaµÄjdbc´ÓÊý¾Ý¿âÀï²éѯ³öÀ´µÄ£¬µ«²éѯ·½·¨ÀïÒªÓÃÒ»¸ö²ÎÊý¼ÙÉèÊÇÒ»¸öÖ÷¼üid¡£È»ºóÎÒÓÃjspÈ¥¼ÓÔØflexÉú³ÉµÄswfÎ ......

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

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