Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÔÚtreeÖж¯Ì¬È·¶¨Ä³¸ö½ÚµãµÄindex

Èç¹ûÓÐÊý¾ÝÔ´ÈçÏ£º
    <root>
        <type label="Food" name="li">
          <food label=" ......

FlexÏîÄ¿£¬ÔÚWebsphereÉÏÔËÐв»ÆðÀ´[

1£º³ÌÐòÒÔ´ò³Éwar°ü(eclipse´òµÄ)
2£ºÔÚtomcatϲ¿Êðwar°ü£¬¿ÉÒÔÕý³£ÔËÐÐ
3£ºÍ¬ÑùµÄwar°ü£¬²¿Êðµ½websphereÉÏÔËÐÐʱ³öÒì³££¬
Òì³£Ö÷ÒªÐÅÏ¢ÈçÏ£º
´íÎóÐÅÏ¢£º(mx.messaging.messages::ErrorMessage)# ......

¹ØÓÚflexÊ÷Ðβ˵¥µÄÎÊÌ⣬Çë½Ì¸÷λ´óÏÅ

ÎÒÏÖÔÚÏëÒªÓÃflex×öÒ»¸öÊ÷Ðβ˵¥Ð§¹û¡£Êý¾Ý¿â´ó¸ÅÈçÏ£º
id,name,parentid
1, XX×Ü»ú¹¹,0
2, XX·Ö»ú¹¹1,1
3, XX·Ö»ú¹¹2.1
4,XX·Ö»ú¹¹1.1£¬2
ÎÒÏë°ÑÉÏÃæµÄÊý¾Ý¶Á³öÀ´ÔÚflexÀï×ö³ÉÊ÷Ðνṹ£¬¸÷λ´óÏ ......

flexµÄDataGirdÊÇÈçºÎ°ó¶¨µÄ

ÎÒ·þÎñ¶ËÓïÑÔÊÇASP.NET,ÎÒÏÖÔÚÔÚ·þÎñ¶ËдÁËÒ»¸öº¯Êý£¬Ö´ÐÐSELECTÓï¾ä£¬ÏÔʾÁËÊý¾Ý¿âÖеÄÊý¾Ý£¬ÎÒÀûÓÃRemoteObject¶ÔÏó½øÐÐÁ½ÕßÖ®¼äµÄͨÐÅ£¬ÏÖÔÚÎÒÏëÎʵÄÊÇ£¬ÈçºÎÔÚFLEX¶Ë°ó¶¨ÎÒµ÷ÓÃASP.NETº¯ÊýºóµÄ½á¹û£¬²¢ÕýÈ·ÏÔʾ³ ......

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ºÅ