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

flex ÓйصĴ¦ÀíÊý¾Ý

Ò»¸öÊý¾ÝÄ£Ð;ÍÊÇÒ»¸öActionScript¶ÔÏó£¬Õâ¸ö¶ÔÏóµÄÊôÐÔÓÃÀ´´æ´¢Ó¦ÓóÌÐòÖ®µØÄãµÄÊý¾Ý¡£ÔÚÏò·þÎñÆ÷·¢ËÍÊý¾Ý֮ǰ£¬»òÕß´Ó·þÎñÆ÷½ÓÊÕÊý¾Ýµ«»¹Ã»ÓÐʹÓÃ֮ǰ£¬Êý¾ÝÄ£ÐÍÌṩһ¸öÔÚFlexÓ¦ÓóÌÐòÖд洢Êý¾ÝµÄ;¾¶¡£Adobe FlexÓ¦ÓóÌÐòÓë·þÎñÆ÷Ö®¼äµÄͨÐÅÖ»·¢ÉúÔÚFlexÓ¦ÓóÌÐòÐèÒª¼ìË÷µÄÊý¾ÝÉÐδ¿ÉÓ㬺ÍʹÓÃFlexÓ¦ÓóÌÐòÖеÄÐÂÊý¾Ý¸üзþÎñÆ÷¶Ë µÄÊý¾ÝÔ´¡£
ÄãʹÓÃÄ£ÐͲ»ÊÇÒ»¶¨ÐèÒªÁ¬½Óµ½·þÎñÆ÷¡£ÀýÈ磬Äã¿ÉÒÔʹÓÃMXML»òActionScript¾²Ì¬¶ÔÏ󣬻òÕß´Ó±¾µØXMLÎļþÖлñÈ¡¡£
ÔÚMXML±ê¼Ç¡¢ActionScriptº¯Êý¡¢»òÕßActionScriptÀàÖУ¬¶¼¿ÉÒÔ¶¨ÒåÊý¾ÝÄ£ÐÍ¡£½«Ä£ÐÍдÔÚMXMLÖÐÓÐÀûÓÚ¿ìËÙ¿ª·¢ºÍ¼ò»¯Êý¾Ý´æ´¢£¬µ«ÊDz»ÄÜÌṩ¶îÍâµÄ¹¦ÄÜ£¬ÄãÒ²²»ÄÜÉèÖÃģʽÊôÐÔµÄÊý¾ÝÀàÐÍ¡£Èç¹ûÄãÏëÉèÖÃÊý¾ÝÀàÐÍ»òÕßΪ¶øÍâµÄ¹¦ÄÜÌṩº¯Êý£¬¾ÍҪʹÓûùÓÚActionScriptÀàµÄÊý¾ÝÄ£ÐÍ¡£Ò»°ã¶øÑÔ£¬»ùÓÚMXMLµÄÊý¾Ý½á¹¹ÓÃÓÚ¼òµ¥µÄÊý¾Ý½á¹¹£¬ActionScriptÓÃÓÚ¸´ÔÓµÄÊý¾Ý½á¹¹£¬²¢ÇÒ¿Í»§¶ËÓкܶàÉÌÒµÂß¼­¡£ÔÚModel-View-ControllerÉè¼ÆÄ£Ê½ÖУ¬Êý¾ÝÄ£ÐͶÔÓ¦Model²¿·Ö¡£
×¢Ò⣺Model-View-Controller(MVC)Éè¼ÆÄ£Ê½Ìṩһ¸öͨÓõĽâ¾ö·½°¸¶ÔÓÚÔÚÓ¦ÓóÌÐòÖеĽôñîºÏ£¬Í¨¹ý·ÖÀëÒµÎñÂß¼­ºÍÏÔʾÂß¼­£¬·â×°Ò»¸öµ¥¶ÀµÄλÖÃΪ½ôñîºÏ¡£Ó¦ÓóÌÐòÖеÄÊý¾ÝÀ´×ÔModel£¬ÏÔʾ²ãÊÇView£¬¿ØÖÆÆ÷ÊǶþÕßʱ¼äµÄý½é²¢ÇÒ°üº¬ÒµÎñÂß¼­¡£¹ØÓÚMVCºÍÆäËûÉè¼ÆÄ£Ê½µÄ¸üºÃµÄ˵Ã÷£¬Çë²Î¿´O’RerllyµÄ¡¶Head First Design Pattens¡·
µ±Äã¹æ»®Ò»¸öÓ¦ÓóÌÐò£¬ÄãÐèÒª¾ö¶¨Ó¦ÓóÌÐòÐèÒª´æ´¢µÄÊý¾ÝµÄÀàÐÍ¡£Õâ°ïÖúÄã¾ö¶¨ÁËÊý¾ÝÄ£Ð͵ÄÀàÐÍ¡£ÀýÈ磬¼ÓÈëÄã¾ö¶¨ÄãµÄÓ¦ÓóÌÐò±ØÐë´æ´¢¹ØÓÚ¹ÍÔ±µÄÊý¾Ý¡£Ò»¸ö¼òµ¥µÄ¹ÍԱģÐÍ¿ÉÄܰüº¬Ãû×Ö¡¢²¿ÃÅ¡¢E-MailµØÖ·ÊôÐÔ¡£
ÔÚFlexÖÐÄãÄܹ»Í¨¹ý¶àÖÖ;¾¶¶¨ÒåÊý¾Ýģʽ£º
ʹÓÃ<mx:Model>±ê¼Ç
ʹÓûùÓڽű¾µÄÄ£ÐÍ
ʹÓûùÓÚÀàµÄÄ£ÐÍ
 Ê¹ÓÃ<mx:XML>±ê¼Ç
ʹÓÃ<mx:Model>±ê¼Ç
»ùÓÚMXML±ê¼ÇµÄ¶¨Òå×îͨÓõķ½Ê½ÊÇʹÓÃ<mx:Model>±ê¼Ç£¬Õâ¸ö±ê¼Ç±àÒëΪActionScript¶ÔÏ󣬵±ÄãµÄÊý¾Ý¾ßÓвã´Î¹ØÏµµÄʱºò±àÒëΪһϵÁÐÊ÷×´¶ÔÏ󣬱àÒëºóµÄ¶ÔÏóÊÇûÓÐÀàÐÍÐÅÏ¢µÄ¡£¶ÔÏóÊ÷µÄÒ¶×ÓÊÇ¿ÉÁ¿»¯µÄÖµ¡£ÒòΪģÐͶ¨ÒåÔÚ<mx:Model>±ê¼Çʱ²»°üº¬ÀàÐÍÐÅÏ¢»òÒµÎñÂß¼­£¬ËûÃÇÖ»ÊÔÓÃÓÚ¼òµ¥µÄÐèÇó¡£µ±ÄãÐèÒª¶¨ÒåÊôÐÔÀàÐÍ»òÕßÏëÌí¼ÓÒµÎñÂß¼­£¬ÄÇôÔÚActionScriptÖж¨ÒåÊý¾Ý¶¨ÒåÄ£ÐÍ¡£
Äã¼È¿ÉÒÔÔÚMXMLÎļþÖеÄ<mx:Model>Öж¨ÒåÊý¾Ý£¬»òÕßʹÓñê¼ÇsourceÊôÐÔ´Ó¶îÍâµÄÊý¾ÝÎļþµÄ¼ÓÔØÊý¾Ý¡£µ±Ê¹ÓÃs


Ïà¹ØÎĵµ£º

һЩFLEXµÄ×ÊÁÏÍøÕ¾.

Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´ Àà
Adobe Flex 2 Component Explorer £º ¹Ù·½µÄ£¬Õ¹Ê¾Á˸÷ÖÖ×é¼þ µÄÓ÷¨ £¬ÈëÃÅ ±Ø¿´¡£
CFlex £ººÜºÃµÄÒ»¸öFlex×ÊÔ´Õ¾µã£¬°üÀ¨½Ì³Ì £¬ÐÂÎÅ£¬×ÊÔ´Õ¾µã…… Ö»ÊÇÒ³ÃæÓеãÔÓÂÒ£¬´ó¼ÒÒ»°ã¿´ÓÒ±ßÄÇÒ»À¸¾ÍÐÐÁË¡£
FlexBox £ºÒ»¸öÊÕ¼¯ ÁËÍøÉϺܶ࿪Դ ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰ µÄºÃ°ïÊÖ¡£
Flex ......

FlexÓë.NET»¥²Ù×÷ϵÁÐÎÄÕÂĿ¼

  ±¾ÏµÁÐÎÄÕÂÖ÷Òª½éÉÜÁ˹ØÓÚFlexÓë.NET½áºÏ¿ª·¢ÖеÄһЩ»¥²Ù×÷ÐÔ£¬°üÀ¨ÍøÂçͨÐÅ¡¢Êý¾Ý¼ÓÔØ¡¢Êý¾Ý´«Êä¡¢Îļþ´«Êä¡¢ÒÔ¼°Ó¦ÓÃÓÚFlexÓë.NETЭ×÷¿ª·¢µÄͨÐÅÍø¹Ø¿ªÔ´ÏîÄ¿FluorineFxµÄÏà¹ØÖªÊ¶µã¡£
     ¿ªÔ´ÏîÄ¿FluorineFx¾ÍÊÇרÃÅÕë¶Ô.NETƽ̨ÓëFlexͨÐÅÌṩµÄAMFЭÒéͨÐÅÍø¹Ø£¬ÎÒÃÇ¿ÉÒÔͨ¹ ......

flexʵÏÖ¶ÁÈ¡±¾µØÎļþ

import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
private var loader:URLLoader = new URLLoader();
private var request:URLRequest = new URLRequest("a.txt");
       
private function initComplete():void
   {
   ......

¹ØÓÚflex¶ÁÈ¡±¾µØÎļþµÄÎÊÌâ

FLEX±àÒëµÄSWFÎļþ£¬Ö»ÄÜÑ¡Ôñ·ÃÎʱ¾µØÎļþ»ò·ÃÎÊÍøÂçÎļþ£¬¶þÕßÖ»ÄÜȡһ£¨àÅ£¬ÎªÊ²Ã´£¿ÎÒÒ²²»ÖªµÀ£¬¹Ù·½ËµÊÇΪÁ˰²È«¿¼ÂÇ£©£¬¶øFLEX±àÒëµÄĬÈÏÑ¡ÏîÊÇÖ»ÄÜ·ÃÎÊÍøÂçÎļþ£¬ËùÒÔÄ㽫binÀïµÄ¶«Î÷COPYµ½ÆäËûµØ·½¾Í²»ÄܶÁÈ¡ÁË¡£¶øÄãÔÚĬÈϵÄbinĿ¼Ï¿ÉÒÔ¶ÁÈ¡µÃµ½£¬ÊÇÒòΪFLEXÈÏΪÄãÊÇÔÚIDE»·¾³ÖÖ£¬ÕâʱÊÇûÓÐÕâ¸öËùνµÄ°²È«ÏÞÖÆµÄ ......

¹ØÓÚflexÖÐtreeµÄʼþ£¬Õ¹¿ªÊ¼þ

£¨1£©treeµã»÷ʼþpublic function handleList(ev:ResultEvent)
{
sourceList=ev.result as ArrayCollection;
}
private function tree_itemClick(evt:ListEvent):void {
var item:Object = Tree(evt.currentTarget).selectedItem;
if (pmtree.dataDescriptor.isBranch(item)) { ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ