FlexÓëwebServices½»»¥´«µÝÊý¾Ý
ΪÁËÔÚÓ¦ÓóÌÐòÖÐʹÓÃÊý¾Ý£¬Adobe Flex °üÀ¨ÁËÓëHTTP servers£¬web services »òremoteobject services
£¨Java objects£©½øÐн»»¥µÄ×é¼þ£¬ÕâЩ×é¼þ±»³Æ֮ΪԶ³Ì¹ý³Ìµ÷Óã¨RPC£©·þÎñ×é¼þ¡£
Óë Adobe ColdFusion£¬PHP »òÀàËƵķþÎñÆ÷¼¼Êõ²»Í¬£¬Flex Ó¦ÓóÌÐò²¢²»Ö±½ÓÁ¬½ÓÊý¾Ý
¿â¡£¾Ù¸öÀý×Ó£¬Äã¿ÉÒÔÔÚÒ»¸öFlex ÎļþÖвåÈëHTTP service À´ÊµÏÖÓëColdFusion ÎļþµÄ½»
»¥£¬ÒÔ»ñÈ¡MySQL Êý¾Ý¿âÖеÄÊý¾Ý£¬×ª»»³ÉXML£¬È»ºó·µÀ¡¸øFlex Ó¦ÓóÌÐò¡£
±¾ÆªÖ÷Òª½²ÊöFlexÓëwebServices½»»¥´«µÝÊý¾ÝµÄ¹ý³Ì¡£
1¡¢webService³ÌÐòµÄ±àд¼°·¢²¼·þÎñ
webServiceµÄÔÀí¼°¸ÅÄî¿É²Î¿¼http://blog.csdn.net/mocklystone/archive/2010/02/24/5322436.aspx¡£
webServiceµÄ±àдÓëƽ³£³ÌÐòµÄ±àдһÑù£¬Ö»ÊÇËûÊÇÒ»¸öweb·þÎñÀàÐÍ£¬²¢ÇÒÔÚ·½·¨ÉÏÐèÒªÌí¼Ó[WebMethod]À´
±êʶ¡£
A¡¢·µ»ØDataTableÀàÐÍ
ʾÀý£º
[WebMethod]
public DataTable GetUserList()
{
DataSet ds = new DataSet();
DataTable dt = new DataTable("UserList");
dt.Columns.Add("UserName");
dt.Columns.Add("UserPwd");
dt.Rows.Add(new object[] { "mocklystone", "123" });
ds.Tables.Add(dt);
return ds.Tables["UserList"];
}
¸Ãº¯Êý·µ»ØµÄÊÇÒ»¸öDataTableÀàÐÍÊý¾Ý£¬µ«ÔÚº¯ÊýÖÐΪʲôҪʹÓÃÒ»¸öDataSetÀ´·â×°£¬²»ÊǶà´ËÒ»¾ÙÂð£¿Æäʵ²»È»£¬webserviceΪ½«Õâ¸öº¯Êý½âÎö³ÉWsdl£¨Ò²¾ÍÊÇxmlÐÎʽµÄÒ»¸öÃèÊöÎĵµ£©£¬ÇÒ·µ»ØµÄÊý¾ÝÒ²ÊǽâÎö³Éxml¸ñʽµÄ£¬ËùÒÔ²»¹ÜʲôÀàÐͶ¼ÐèÒªÐòÁл¯È»ºóת»»³Éxml£¬ÇìÐÒµÄÊÇ.netÓзâ×°¶Ô»ù±¾ÀàÐͼ°Ò»Ð©³£ÓÃÀàÐ͵ÄÐòÁл¯¡£¿ÉÕâЩÀàÐÍÖв¢Ã»Óаüº¬DataTable£¬µ«È´Ö§³ÖDataSet£¬ËùÒÔͨ¹ý·â×°³ÉDataSet£¬ÔÙ½«ÆäÖеÄDataTableÊý¾Ý·µ»ØÈ¥£¬¾Í¿ÉÒÔת»»³Éxml¸ñʽÁË¡£
B¡¢·µ»Ø·ºÐÍList<T>µÄÊý¾ÝÀàÐÍ
ʾÀý£º
[WebMethod]
public List<User> GetAllUserList()
{
List<User> list = new List<User>();
User user = new User();
user.UserName = "mocklystone";
user.UserPwd = "123";
list.Add(user);
return li
Ïà¹ØÎĵµ£º
2010.2.21 ³õ²½Ó¡Ïó
1. Flex¹¤³ÌµÄºËÐľÍÊÇÄǸömxmlÎļþ£¬ËùÓеĴúÂë»ò½á¹¹¶¼ÊÇΧÈÆËü£»
2. ÓëÕâ¸ömxmlÎļþͬÃûµÄasÎļþ£¬ËûÃÇÖ®¼äµÄ¹ØϵÓеãÏñhtmlÓëjsµÄ¹Øϵ£¬¶øÇÒ»¹²»ÓÃinclude£»
3. ×îÖÕ»áÉú³ÉÒ»¸öÓëmxmlÎļþͬÃûµÄhtmlÎļþ£¬¶øflashÎļþ»á±»Ç¶Èë½øÈ¥µÄ£»
2010.2.22 ÓëSping,Hibernate¼¯³É
¿´ÁËÕâƪÎÄÕ£ºhttp://w ......
Flex RadarChart À×´ïͼ
ÍƼö½â¾ö·½°¸£º
²Î¿¼ÍøÕ¾
http://lab.kapit.fr/display/radarchart/Download
Èí¼þÐí¿ÉÐÒé¿ÉÒÔʹÓÃÉçÇøÃâ·Ñ°æ
±¾:http://lab.kapit.fr/display/Store/Free+License
ÏÂÔØ×îеÄRadarChartDemo-
Community-1.X.zip
ÏÂÔØ°üÀïRadarChartDemo-Community-1.5.2Óиö
Readme_Application.pdfÀïà ......
ÔÚFlexÖУ¬ÀûÓÃstate½øÐÐ״̬ºÍÒ³ÃæµÄǨÒÆÓë±ä»»£¬ÖмäµÄAddChild IOverrideÓÐÒ»¸öcreationPolicy£¬Õâ¸öÊôÐÔÓÐÈýÖÖÉèÖ㬷ֱðÈçÏ£º
AUTO£ºÄ¬ÈÏÉèÖã¬Ö»ÓÐÔÚ״̬¸Ä±äµÄʱºò£¬¼´Ê±µÄÉú³ÉÐÂÔö×é¼þ£»
ALL£ºÔÚApplication¼ÓÔصÄʱºò£¬¾Í¼ÓÔØÁËÐÂÔöµÄ×é¼þ£¬ÔÚ״̬¸Ä±äµÄʱºòÏÔʾ£»
NONE£ºÐèÒªÊÖ¶¯µÄµ÷ÓøÃaddChild Instance c ......
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[0x000000,0x000000]"
themeColor="#222222"
horizontalAlign="left"
paddingLeft="10" paddingRight="10"
creationComplete="genData();"
viewSourceURL="srcview/index.ht ......