Flex SDK 4(Gumbo)ÃüÃû¿Õ¼ä£¨NameSpace£©¸ÅÊö
±¾ÆªÎÄÕÂÊÇ¡¶Flash Builder 4 beta (Gumbo) UI¡¢¹¦ÄܵÄÐÂÌåÑé¡·µÚÈýƪÎÄÕ£¬×ÅÖؽéÉܵÄFlex SDK 4(Gumbo)ÐÂÔö¼ÓµÄÃüÃû¿Õ¼ä£¨NameSpace£©¡£
ÖÚËùÖÜÖª£¬Flex SDK 4(Gumbo)Ôö¼ÓÁËһЩÃüÃû¿Õ¼ä£¬Çë¿´ÈçÏ£º
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:s="library://ns.adobe.com/flex/spark"
1¡¢xmlns:fx="http://ns.adobe.com/mxml/2009"
¶¨ÒåÁ˶¥¼¶µÄActionScript 3.0һЩ¶¥¼¶µÄ·½·¨¡¢È«¾Öº¯ÊýºÍÈ«¾Ö³£Á¿µÈÄÚÈÝ¡£
ÀýÈçÎÒÃdz£ÓõÄһЩÊý¾ÝÀàÐÍ£ºNumber¡¢int¡¢Boolean¡¢Array¡¢StringµÈ¡£
ÔÚ¡¶Adobe Flex 4 Beta Language Reference¡·ÀïÃæµÄÕâ¸öÁ´½ÓÖлáÓÐÏêϸÃèÊö¡£
¹ØÓÚÕâ¸öÃüÃû¿Õ¼äµÄÄÚÈÝ£¬È«²¿¶¨ÒåÔÚFlash Builder°²×°Ä¿Â¼ÏÂÃæµÄsdks\4.0.0\frameworks\mxml-2009-manifest.xmlÀïÃæ¡£
2¡¢xmlns:mx="library://ns.adobe.com/flex/halo"
ʹÓùýFlex SDK 2 ºÍ Flex SDK 3µÄÅóÓѾͲ»»áÄ°ÉúÁË£¬Õâ¸öÃüÃû¿Õ¼ä£¨NameSpace£©ÀïÃæµÄÄÚÈÝÊÇmx.*ÏÂÃæµÄÈ«²¿ÄÚÈÝ£¬Çë×¢Òâһϣ¬ÆäÖÐhaloµÄÃû×Ö¾ÍÊÇFlex SDK 2 ºÍ Flex SDK 3ÀïÃæĬÈϵÄCSSÑùʽ¡£
¹ØÓÚÕâ¸öÃüÃû¿Õ¼äµÄÄÚÈÝ£¬È«²¿¶¨ÒåÔÚFlash Builder°²×°Ä¿Â¼ÏÂÃæµÄsdks\4.0.0\frameworks\halo-manifest.xmlÀïÃæ¡£
3¡¢xmlns:s="library://ns.adobe.com/flex/spark"
ÕâÊÇFlex SDK 4(Gumbo)ÀïÃæÐÂÔö¼ÓµÄ×é¼þ¿â¡£°üº¬ÁËFlex SDK 4(Gumbo)ÀïÃæÈ«²¿µÄspark.* ºÍ flashx.* packagesÀïÃæµÄ²¿·ÖÄÚÈÝ£¨text framework class£©
¹ØÓÚÕâ¸öÃüÃû¿Õ¼äµÄÄÚÈÝ£¬È«²¿¶¨ÒåÔÚFlash Builder°²×°Ä¿Â¼ÏÂÃæµÄsdks\4.0.0\frameworks\spark-manifest.xmlÀïÃæ¡£
ÆäÖеÄһЩÎÒÈÏΪ±ØÒªÁ˽âµÄÄÚÈÝ£º
1¡¢xmlns:mx="library://ns.adobe.com/flex/halo" ºÍ xmlns:s="library://ns.adobe.com/flex/spark"ÊÇƽ¼¶µÄ£¬¶øxmlns:fx="http://ns.adobe.com/mxml/2009"ÊÇActionScript 3.0¶¥¼¶µÄÄÚÈÝ¡£Ò²¾ÍÊÇ˵£¬Èç¹ûÔÚijһ¸öProjectÀïÃæֻʹÓÃhaloµÄ»°£¬Ôò¿ÉÒÔÔÚApplicationÀïÃæÈ¥µôsparkµÄ¶¨Òå¡££¨·´Ö®ÒàÈ»£©
2¡¢xmlns:mx="library://ns.adobe.com/flex/halo" ºÍ xmlns:s="library://ns.adobe.com/flex/spark"ÆäÖÐÓÐÒ»²¿·ÖÊǹ«Óõģ¬ÕâµãÇë´ó¼Ò×¢Òâһϣ¨¹ØÓÚΪʲôÊǹ«Óõģ¬ÎҲ²âÊÇΪÁËÈÃFlex SDK 2 ºÍ Flex SDK 3ǨÒƵ½Flex SDK 4(Gumbo)µÄ¹ý³Ì¸ü·½±ãһЩÔì³ÉµÄ¡££©
3¡¢xmlns:fx="http://ns.adobe.com/mxml/2009"±£Áô
Ïà¹ØÎĵµ£º
Root folder
Õâ¸öĿ¼Ӧ¸ÃÌîдtomcatĿ¼Ï£¬ÄǸöjavaÏîÄ¿µÄËùÔÚλÖã¬Èç¹ûΪ´í£¬»á³öÏÖ“ Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.”ËüÌáʾ¸ÃĿ¼WEB-INF²»´æÔÚflex-config.xml»òservice-config.xmlÎļþ£¬Èç¹ûÊÇÒ»¸öÕý³£µÄjavaÏîÄ¿£¬¾Í»áÓÐÕâ¸öÎļ ......
strategyMarketsOfCurrentStrategy.addEventListener(CollectionEvent.COLLECTION_CHANGE, strategyMarketsDataChangedHandler);
strategyMarketsOfCurrentStrategy.removeAll(); &nbs ......
ÓÃÁËÁ½Ììʱ¼äѧϰÁËÏÂFlexºÍjavaÅäºÏʵÏÖÎļþÉÏ´«£¬ÕÒÁ˸öСÀý×Ó¡£Ç°¶Ëµ±È»ÊÇflex£¬ºǫ́ʹÓÃservlet£¬°Ñ´úÂëÌùÉÏÀ´£¬±¸Íü°É£º
FileUpload.java:
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletExc ......
¹ØÓÚFlex»òFlashµÄ¿çÓò·ÃÎʵĽâ¾ö·½°¸£¬ÊÂÇéµÄÆðÒòÊÇ£¬ÓÉÎÒ¹«¿ªµÄÒ»¸öwebservice£¨²»Çå³þÕâ¸öwebservice¸ÉʲôµÄÇë¿´ÕâÀ¿ªÊ¼µÄ£¬kenshinµÄÅóÓÑsensunÔÚÕâ¸ö¹«¿ªµÄwebserviceµÄ»ù´¡ÉÏÖÆ×÷ÁËÒ»¸öweather²éѯµÄ£¬ÔÚ±¾»ú²âÊÔok£¬Ò»Äõ½ÍøÉÏ£¬¾Í»á³öÏÖerror£¨ÊÇ¿çÓò·ÃÎʵĴíÎ󣩣¬ºóÀ´£¬kenshinÖÕÓÚÕÒµ½ÁËÕâ¸öÎÊÌâµÄ½â¾ö·½° ......
ÖÐÎÄÔÚÏß°ïÖúÎĵµ£ºhttp://livedocs.adobe.com/flex/3_cn/langref/
http://examples.adobe.com/flex3/componentexplorer/explorer.html¡£
ÆäËûÍøÕ¾£º
http://bbs.actionscript3.cn
http://www.airia.cn
http://www.anyflex.cn/bbs
http://www.5uflash.com/flex-air
http://www.52ria.com
http:// ......