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

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

ÈçÌâ
ÎÒÏë´ÓjsÖлñÈ¡Ò»¸öÊýÖµ£¬È»ºó´«µÝ¸øflex£¬Êý¾ÝÊÇÓÃÀ´×öͼ±íÓõÄ
ÎÊÌâ¾ÍÊÇ
private var medalsAC:ArrayCollection = new ArrayCollection( [
            { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
            { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
            { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 } ]);
Êý¾ÝÈçºÎ·Ö±ð¶ÔÓ¦Country£¬GoldºÍSilverÄØ£¿
Çë¸÷λ½ÌÒ»ÏÂÎÒ£¬Ð»Ð»ÁË£¬
·ÖÊý²»¶à£¬Çë¸÷λ¼ûÁÂ
»¹ÓÐÒ»¸öÎÊÌâÊÇ£¬jsÔõô´«Ò»¸öÊýÖµ¸øflexÄØ£¿

jsÖеÄÊý×é¿ÉÒÔд³ÉÀàËÆÉÏÃæµÄÐÎʽ£¬Ö±½Ó½øÐд«µÝ£¬È»ºóÓÃvar arrCo:ArrayCollection=new ArrayCollection(arr);¾Í¿ÉÒÔ½ÓÊÜÁË£¬arrΪjs´«¹ýÀ´µÄÊý×é¡£js´«Öµ¸øflexµÄ»°¿ÉÒÔÓÃFlexµ÷jsµÄ·½·¨£¬jsµÄ·½·¨Ï൱ÓÚÀàÖеÄget£¬»¹ÓÐÒ»ÖÖ¾ÍÊÇjsµ÷FlexµÄ·½·¨£¬Í¨¹ý²ÎÊý´«µÝ¡£·´ÕýҪôÊǵ÷Óú¯ÊýÈ¡µÃ·µ»ØÖµ£¬ÒªÃ´´«µÝ²ÎÊý£¬ÔÚÁíÒ»¸öÓïÑÔÀï½øÐд¦Àí¡£»ù±¾¶¼²î²»¶à¡£Äã¿ÉÒÔÕÒÒ»ÏÂÕâ·½ÃæµÄ×ÊÁÏ

Â¥ÉϵĿ϶¨²»ÔõôÐУ¬js´«µ½flex´«µÄÊÇ×Ö·û´®£¬¸ù±¾²»»áÊÇÒ»¸öÊý×飬Ҫ°Ñjs¶ËjsonÊý×é´¦ÀíΪ×Ö·û´®È磺
'{ Country: "USA", Gold: 35, Silver:39, Bronze: 29 }',ÔÚflexÖÐʹÓÃÀà¿âjson.decode(string)¿ÉÒÔת±äΪjsonÊý×éµÄ£¬Ò»¸öjsonÊý×é¾ÍÊÇÒ»¸ö¶ÔÏó£¬Ö±½Óµ÷ÓÃÊôÐÔ¾ÍÐУ¬Èçcountry=object.Country,Èç¹ûÊÇÊý×é¼´Êý×éÖÐΪ¶ÔÏ󣬵÷ÓÿÉÒÔÕâÑùдarray[0].country.

str= "0.Gold=35;0.Country=china;0.Silver=39;0.Bronze=29;1.Gold=35;1.Country=USA;1.Silver=39;1.


Ïà¹ØÎÊ´ð£º

FLEXÖÐformÀïÃæµÄÄÚÈݾÓÖÐ

Èç¹ûÈÃFLEXÖÐformÀïÃæµÄÄÚÈݾÓÖУ¬ÎÒÏÂÃæµÄ²¼¾Ö£¬Èç¹ûÈÃformÀïÃæµÄÄÚÈݾÓÖÐ
XML code:

<mx:Panel styleName="moduleTitle" title="Óû§Ìí¼Ó" xmlns:mx="http://www.adobe.com/2 ......

FLEX·â×°ºóµÄÒ³ÃæÊÇ·ñ¿ÉÒÔÓÃQTPÑ¡È¡µ½¶ÔÏ󣿼±¼±¼±£¡

ÊÇÕâÑùµÄ£¬Õâ¸öÎÊÌâ¿ÉÄÜ¿´ÆðÀ´ÏñѯÎÊQTPµÄ£¬µ«Ö®Ç°¶ÔFLEX¿ª·¢ÓïÑÔÁ˽âµÄºÜÉÙ£¬×î½üÓиöÏîÄ¿£¬ÐèÒªÓõ½
QTP£¬È»ºóºÜÓôÃƵķ¢ÏÖ£¬Ê¹ÓÃQTP SPYÑ¡È¡²»µ½FLEXÒ³ÃæÖеÄÈκÎÒ»¸ö¶ÔÏó£¬Ö»¿ÉÒÔÑ¡È¡WINOBJECTÕâ¸ö¶ÔÏó£¬
......

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

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

Flex Socket·¢ËͽÓÊÕÆæÊý¸öºº×Öβ²¿ÂÒÂëÎÊÌâ

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontSize="12" creatio ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ