FlexÍÏק
¹Ø¼ü×Ö: flex, ÍÏקº¯Êý
Flex×é¼þÄÚÖÃÁË´¦ÀíÍÏקʼþµÄ½Ó¿Ú£¬ÓÐЩ¿Ø¼þÒѾʵÏÖÁËÍÏק¹¦ÄÜ£¬±ÈÈçList¡¢DataGrid¡¢Menu¡¢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£º¶ÀÏí±»ÍÏÀëÄ¿±ê·¶Î§¡£
Ïà¹ØÎĵµ£º
»·¾³£ºeclipse 3.5 + tomcat 6.0 + flex builder 3.0 + blazeds-turnkey-3.2.0.3978.zip£¨adobeÍøÕ¾ÉÏÏÂÔØ£©
(ÒòΪ²»ÄܷŽØͼËùÒÔÖ»ÄÜÐðÊöÁË)
1£¬Ð½¨Ò»¸öjava webÏîÄ¿ ÀýÃûΪ :testjava;
2,Ôڴ˹¤³ÌÖÐдһ¸ö¼òµ¥µÄÀà:
package cn.com;
& ......
ÔÚÏîÄ¿ÖÐÓõ½Á˶à¸ömoduleʱ£¬ÔÚµÚÒ»´Î¼ÓÔØModuleÊÇ¿ÉÒԵġ£ÔÚµÚ¶þ´Î¼ÓÔØmoduleʱ»á³öÏÖת»»Ê§°Ü
½â¾ö·½·¨£º
ÈçÏÂΪ½â¾ö°ì·¨£ºÔÚÒªµ÷ÓÃÔ¶³Ì¶ÔÏóµÄApplicationÎļþÀïÃ棬¼ÓÉÏÈçÏÂÉùÃ÷Óï¾ä£º
import flash.net.registerClassAlias;
registerClassAlias("JAVA¶ËµÄÀàÈ«Ãû",A ......
ÔÎÄ£ºhttp://www.riameeting.com/node/587
ÀïÃæÓÐÒ»¾ä×ܽáÐԵĻ°:
ÉèÖÃÒ»¸ö¶ÔÏóΪnull²»Ò»¶¨Äܹ»ÊÍ·ÅËüÕ¼ÓõÄÄڴ攡£ÕâÈ¡¾öÓÚflashÖÐÒѾʵÏÖµÄÀ¬»ø»ØÊյķ½Ê½£¬GCÓÉÖØ·ÖÅä´¥·¢¶ø²»ÊÇÓÉɾ³ý´¥·¢£¬ÕâÒâζ×ÅGCÖÜÆÚÔÚÄãÉùÃ÷new Object()µÄʱºòÔËÐжø²»ÊÇÄãÉèÖÃËüΪnullʱÔËÐС£
Ò²¾ÍÊÇ˵ÔÚnew ¶ÔÏóʱ²ÅÖØзÖÅäÄ򫾣 ......
±¾ÎÄÀ´×Ô£ºhttp://www.insideria.com/2009/12/flex-101-creating-an-swipeslid.html
ÔÚ±¾ÀýÖУ¬ÎÒÃǽ«Ì¸ÂÛÔõÑù´´½¨swipe/slideЧ¹û¡£µ±Äã´ÓÒ»¸öÆÁÄ»·µ½ÁíÍâÒ»¸öÆÁÄ»ÉÏ£¬Äã¾³£¿ÉÒÔ¿´µ½´¥ÃþÉèÊ©Àï³öÏ֓ת±ä”£¬ÎÒÃǾÍÊÇÊܵ½ÁËËüµÄÆô·¢¡£Ò»Ò³ÄÚÈÝ´Ó»¬ÒƵ½Ò»±ß£¬ÁíÍâÒ»Ò³´ÓÁíÍâÒ»±ßÎ޷컬¶¯½øÀ´¡£
ÔÚÎÒÃǽøÒ»²½ ......
¹Ø¼ü×Ö: flex, arraycollection
¼¯ºÏÊÇActionScript Öй¦ÄÜÇ¿´óµÄ»ùÓÚË÷ÒýµÄÊý×é×é¼þ£¬Ìí¼ÓÁËÈç¶ÔÄÚÈݽøÐÐÅÅÐòµÈ¹¦ÄÜ£¬
²Ù×÷Êý×éµÄ¶ÁȡλÖ㬴´½¨¾¹ýÅÅÐòµÄÊý×éÊÓͼ¡£¼¯ºÏÒ²ÄÜ֪ͨÆäÈÎÒâʼþ¼àÌýÆ÷¼àÌýÆäÊý
¾ÝÊÇ·ñ¸Ä±ä£¬ÒÔ¼°ÈκÎÊý¾ÝÏî±»Ìí¼Óµ½Ô´Êý×éʱ¿ÉÖ´ÐÐ×Ô¶¨ÒåÂß¼¡£µ±Êý¾Ý¸Ä±äʱ¿É֪ͨÆä
¼àÌýÆ÷£¬ÕâÊǼ¯ºÏµÄй ......