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

ΪÄãµÄFlexÓ¦ÓóÌÐò´´½¨Ò»¸ö×Ô¶¨Ò嶯»­¹â±ê

ÔÚ±¾´ÎFlexÖ¸ÄÏÖУ¬ÈÃÎÒÃÇ¿´¿´ÈçºÎÔÚFlashÖÐʹÓÃCursorManagerÀà´´½¨Ò»¸ö¶¯»­¹â±êÀ´Ì滻ĬÈϵļýÍ·¹â±ê¡£
1
. ´´½¨Ò»¸öеÄFlexÏîÄ¿ÃûΪAnimatedCursor£¬ÉèÖÃÖ÷MXMLÓ¦ÓóÌÐòÃûΪMain.mxml¡£
2
.
ÎÒÃǵÄ×Ô¶¨Òå¹â±êÊÇÒ»¸öswfÎļþ£¬Òò´ËÇë´ò¿ªFlashÀ´´´½¨×Ô¼ºµÄ×Ô¶¨Òå¹â±ê¡£Ö¡ÂÊÉèÖÃΪÊÊÓ¦FlexÖ¡ÂʵÄ24ÔÚÕâÀÎÒÃÇÖ»ÊǼòµ¥ÊÖ¹¤»æÖÆÒ»¸ö¼ý
Í·²¢´´½¨Ò»¸ö²¹¼ä¶¯»­À´¸Ä±äËüµÄÑÕÉ«£¬ÄãÒ²¿ÉÒÔ×Ô¼º¿ª¶¯ÄԽÀ´´´½¨Ò»¸ö¸üÓд´ÒâµÄ¶¯»­£¬È»ºó·¢²¼ÄúµÄswfÎļþ¡£ 
3
. ·µ»Øµ½Flex£¬Ìí¼ÓÒ»¸öCheckBox×é¼þ£¬µ±Æä·¢Éú±ä»¯Ê±µ÷ÓÃÎÒÃǼ´½«´´½¨µÄtoggleCursor·½·¨¡£
1.<mx:CheckBox label="Custom Cursor" change="toggleCursor(event)"/>
4.
Ìí¼ÓÒ»¸ö½Å±¾¡£Ê×ÏÈ£¬Ç¶ÈëÄúµÄSWFÎļþ£¬½«Æä×÷Ϊ×Ô¶¨Òå¹â±êʹÓá£
1.[Embed(source="cursor.swf")]
2.private var AnimatedCursor:Class;
5
. ÔÚtoggleCursor·½·¨ÖУ¬¼ì²é¸´Ñ¡¿òÊÇ·ñ±»Ñ¡ÖС£
Èç¹ûΪtrue£¬µ÷ÓÃCursorManagerÀàµÄsetCursor·½·¨²¢°ÑËüµÄÒýÓô«µÝ¸øÄãǶÈëµÄswf¹â±ê¡£
setCursor·½·¨·µ»ØÒ»¸öIDÓÃÓÚ¹â±êµÄÉèÖã¬ÄãÐèÒª´æ´¢Õâ¸öID£¬ÒÔ±ãÎÒÃÇÒÔºóÓÃÔÚremoveCursor£¨£©·½·¨Àï¡£
01.import mx.managers.CursorManager;
02. 
03.private var cursorID:int;
04. 
05.private function toggleCursor(e:Event):void{
06.         if (e.currentTarget.selected)
07.              cursorID = CursorManager.setCursor(AnimatedCursor);
08.         else CursorManager.removeCursor(cursorID);
09.}
6
.
ÏÂÃæÊÇ×îºóµÄ´úÂ룬ÔËÐиóÌÐò½øÐвâÊÔ°É¡£
01.<?xml version="1.0" encoding="utf-8"?>
02.<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
03.   verticalAlign="middle" backgroundColor="#FFFFFF">
04. 
05.    <mx:Script>
06.        <![CDATA[
07.            import mx.


Ïà¹ØÎĵµ£º

flex 4²å¼þ°æ°²×°Ã»ÓÐÊÓͼģʽԭÒòÖ®Ò»

Õ⼸ÌìҪѧһÏÂflex¿ª·¢£¬µ«ÊÇ°²×°µÄÊÇeclipse²å¼þ°æµÄ£¬¿ÉÊÇ°²×°ºÃºó·¢ÏÖûÓпÉÊÓ»¯µÄ±à¼­ÊÓͼ£¬×îºó·¢ÏÖÆäʵÊÇÒòΪflexµÄmxmlÎļþµÄ´ò¿ª·½Ê½ÊÇʹÓõÄspket±à¼­Æ÷´ò¿ªµÄ£¬ËùÒÔûÓпÉÊÓ»¯±à¼­ÊÓͼ£¬ÓÚÊÇ°ÉspketжÔØÁË¡£¾ÍºÃÁË¡£¼Ç¼һÏ£¬Ï£ÍûÄÜ°ïµ½±ðÈË£¬Ò²ÈÃ×Ô¼º¼Çס ......

FABridge½Ì³Ì(Flex+Ajax) 2

Ê×ÏÈÔÚfademo.mxmlÖÐÉùÃ÷Ò»¸öbutton£¬²¢Ìí¼ÓÒ»¸öbtnClick·½·¨£º
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8"?> 
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"   
             ......

flex spring £¬flex ÕûºÏ spring , flex + spring

flexÕûºÏspringÒ²ÓкܶàµÄÀý×Ó£¬ÆäʵÓкܶàÀý×Ӻܸ´ÔÓ¡£ÎÒÔÚÕâ¾Í¸ø´ó¼Ò½éÉܸö×î¼òµ¥µÄ£¬ºÜʵÓá£
˵Ã÷ÏÂ:flexÍêÈ«¿ÉÒÔ´úÌæstruts£¬ÏÂÃæµÄÀý×ÓÄÜÖ¤Ã÷¡£ÓÐÈË»áÎÊÁË£¬ºÍÆäËû¿ò¼ÜÔõôÑùÕûºÏ¡£spring¶¼ÄÜÕûºÏÁË£¬ÆäËû¿ò¼ÜÄãÒª²»»áÕûºÏÎÒÒ²¶¼ÎÞÓïÁË¡£
²»¶à˵ÁË£¬¿´´úÂë¾ÍÖªµÀ¼òµ¥²»£¡
flex--sdk 3.2ÒÔÉÏ
jdk 1.5 ÒÔÉÏ
spring ......

ÔÚExcelÓëFlexÖ®¼äÕ³ÌùÊý¾Ý

2ÖÖ·½·¨£¬
Ò»£¬ÀûÓÃjs¶ÁÈ¡ð¤Ìù°æ£º
var content = clipboardData.getData("Text");
document.getElementById("${application}").getClipboardData(content);
¶þ£¬Ö±½Ó¸´ÖƵ½datagrid
ÔÚDataGridÖУ¬µ±°´ÏÂCtrl¼üʱ£¬ÎÒÃÇ´´½¨Ò»¸öÒþ²ØµÄÎı¾£¨TextField£©×é¼þ£¬²¢½«½¹µã¶¨Î»¸øËü£¬ÕâÑù£¬ÎÒÃǾͿÉÒÔ½ÓÊÜÈκÎͨ¹ýCtrl+VÕ ......

Flex ѧϰ±Ê¼£Ö®1 flexµÄʼþ(1)

Adobe Flex 3 Help > Flex Programming Elements > Using Events
Adobe Flex 3 Help
 
Flex Programming Elements / Using Events
Using events
Using events in Flex is a two-step process. First, you write a function or class method, known as an event listener or event handler, that responds ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ