flexÖÐÍÏÒ·×é¼þµÄ¼¸¸öÊôÐÔ
Flex×é¼þÄÚÖÃÁË´¦ÀíÍÏקʼþµÄ½Ó¿Ú£¬ÓÐЩ¿Ø¼þÒѾʵÏÖÁËÍÏק¹¦ÄÜ£¬±ÈÈçList¡¢DataGrid¡¢Menu¡¢
HorizontalList¡¢ PrintDataGrid¡¢TileList¡¢Tree£¬ÔÚÉèÖÃÏà¹ØµÄÍÏקÊôÐÔºó£¬ËüÃǶ¼¿ÉÒÔÔÚÏàͬÀàÐ͵Ä×é
¼þÖ®¼äÀûÓÃÊó±êÀ´ÊµÏÖÊý¾ÝµÄתÒÆ¡£
allowDragSelection ÊÇ·ñ¿ÉÒÔÍÏÑ¡
allowMultipleSelection ÊÇ·ñ¿ÉÒÔ¶àÑ¡
dragEnabled ÊÇ·ñ¿ÉÒÔÍ϶¯×ÓÔªËØ
dragMoveEnabled ÊÇ·ñÒƶ¯ÔªËØλÖ㬶ø²»ÊǸ´ÖÆÔªËØ
dropEnabled ÊÇ·ñ¿ÉÒÔ½«ÎïÌå·ÅÖýøÀ´
ÔÚFlexÖУ¬Óм¸¸öרÃŵĶÔÏ󹩿ª·¢Õß´¦ÀíÍÏקʼþ£º
DragManager£ºÎ»ÓÚmx.managers°üÖУ¬¹ÜÀíÍÏקʼþ
DragSource£º λÓÚmx.core°üÖУ¬ÊÇFlex¿ò¼ÜÖеĺËÐijÉÔ±£¬´¦ÀíÍÏקÖеÄÊý¾Ý´«µÝ
DragEvent£º λÓÚmx.events°üÖУ¬ÍÏק²Ù×÷ÖеÄʼþ¶ÔÏó¡£
°´ÕÕÂß¼£¬ÍÏקÖÐÖÁÉÙÓÐÁ½¸ö¶ÔÏó£ºÒ»·½ÌṩÊý¾Ý£¬Ò»·½½ÓÊÕÊý¾Ý¡£ÔÚÕâ¸ö¹ý³ÌÖУ¬ÌṩÊý¾ÝµÄÒ»·½°´ÕÕÇ°ºó ˳Ðò£¬¿ÉÒÔ°ÑÕû¸ö¹ý³Ì»®·ÖΪÏÂÃ漸¸öʼþ£º
mouseDown£ºÊó±ê°´Ï¡£
mouseMove£ºÊó±êÒƶ¯¡£
dragComplate£ºÊó±êÊÍ·Å¡£ÅжÏÄ¿±êÊÇ·ñ½ÓÊÜÊý¾Ý£¬Èç¹û¿ÉÒÔ£¬ÍϷųɹ¦¡£
½ÓÊÕ·½Ò²½«¾Àú¼¸¸ö½×¶Î
dragEnter£º±»Í϶¯¶ÔÏóÒƶ¯µ½Ä¿±ê·¶Î§ÖС£
dragDrop£ºÊó±êÔÚÄ¿±êÉÏËÉ¿ª¡£
dragOver£ºÊó±êÒƶ¯µ½Ä¿±êÉÏ¡£
dragExit£º¶ÀÏí±»ÍÏÀëÄ¿±ê·¶Î§¡£
Ïà¹ØÎĵµ£º
1) ±àÒëCSS×ÊÔ´
Îļþä¯ÀÀÆ÷£¨Navigator£©ÖУ¬ÔÚ±ê×¼µÄFlex CSSÎļþÉϵã»÷ÓÒ¼ü£¬µã»÷Compile CSS to SWF¼´¿ÉÍê³É±àÒëCSSµÄÈÎÎñ¡£
ÔÚ³ÌÐòÖпÉÒÔÓÃStyleManager.loadStyleDeclarations()À´¶Á³öÒѱàÒëºÃµÄCSSÎļþÖеÄÄÚÈÝ¡£
¾ßÌå²Ù×÷ÈçÏÂ:
&nbs ......
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt5.html
Èç¹ûÄúÒªÏÔʾ´óÁ¿ itemRenderer£ÎÞÂÛÔÚ DataGrid »¹ÊÇÔÚ AdvancedDataGrid ÖУÈç¹ûÎÞ·¨ÓÐЧ±àдÕâЩ itemRenderer, ÄúµÄÓ¦ÓóÌÐòÐÔÄÜ¿ÉÄÜÊܵ½¸ºÃæÓ°Ïì¡£ÒÔÏÂÊÇһЩ¿ÉÄÜÓÐËù°ïÖúµÄÌáʾ:
ÏÞÖÆʹÓà itemRenderer µÄÁÐÊý¡£ÊÇ·ñÕæµÄÐèÒª½«Ã ......
ÏûÏ¢·þÎñ(Message Service )Ìṩ·¢²¼(publish)/¶©ÔÄ(subscribe)»úÖÆÔÊÐíFlex Ó¦ÓóÌÐò·¢²¼ÏûÏ¢¡¢¶©ÔÄÏûÏ¢ÖÕ¶Ë(messaging destination)£¬´Ó¶øʵÏÖʵʱÊý¾ÝµÄÍƺÍÐ×÷¡£
¡¡¡¡Ò»¡¢Message Service
¡¡¡¡Message Service Ìṩ·¢²¼(publish)/¶©ÔÄ(subscribe)»úÖÆÔÊÐíFlex Ó¦ÓóÌÐò·¢²¼ÏûÏ¢¡¢¶©ÔÄÏûÏ¢ÖÕ¶Ë(messaging des ......
·ÏÂÃæ½éÉÜFlexÓë.NETµÄWebServiceµÄÊý¾ÝͨÐÅ֪ʶµã;°üÀ¨Á¬½ÓWebService£¬Ô¶³Ìµ÷ÓÃWebService·½·¨£¬¸øWebService·½·¨´«µÝ²ÎÊýµÈÏà¹Ø֪ʶµã¡£
¡¡¡¡<mx:WebServiceid="dataService"
¡¡¡¡¡¡¡¡wsdl="http://localhost/FlashFlex/DataWebService.asmx?wsdl"
¡¡¡¡¡¡¡¡useProxy="false">
¡¡¡¡¡¡¡¡<mx:ope ......