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

FlexͨÐÅƪ——Õæ ×éºÏ¼ü

<![CDATA[
FlexÖеļüÅÌʼþ
ÒªÔÚFlexÖÐÏìÓ¦¼üÅÌÊäÈ룬ֻÐè×¢²ákeyDownʼþ¼´¿É¡£
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" keyDown="OnKeyDown(event)">
    <mx:Script>
            private
function OnKeyDown(event:KeyboardEvent):void
            {
                _Msg.text += "Ctrl:" + event.ctrlKey + ", Key:" + event.keyCode + "\n";
            }
¡­
²¶×½µ¥¼üÅÌÊäÈëʱkeyDownʼþÄܹ»ºÜºÃµÄ¹¤×÷£¬µ«ÊÇ£¬Òª´¦Àí×éºÏ¼üʱkeyDownʼþ¾ÍÓÐÎÊÌâÁË£¬ÀýÈ磺Ctrl+C£¬Ctrl¼üÄܹ»²¶×½µ½£¬µ«C¾ÍʧЧÁË¡£
ÕÛÖеİ취£¬´¦Àí×éºÏ¼üʱÓÃkeyUpʼþ¡£
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" keyUp="OnKeyUp(event)">
    <mx:Script>

private
function OnKeyUp(event:KeyboardEvent):void
            {
                _Msg.text += "Ctrl:" + event.ctrlKey + ", Key:" + event.keyCode + "\n";
            }
¡­
ʹÓÃkeyUpʼþ£¬ËäÈ»Äܹ»ÏìÓ¦ÁË×éºÏ¼ü£¬µ«»¹ÊÇ´æÔÚÎÊÌ⣬°´¼ü²»Áé»î£¬¶øÇÒÒªUpʱ²Å´¥·¢Ê¼þ£¬´ï²»µ½Ò»°ãÈí¼þµÄ×éºÏ¼üЧ¹û£¬ÊָвËùÒÔ£¬ÐèÒª´ÓÍⲿӦÓóÌÐò½Ø»ñkeyDownʼþ£¬ÔÙ´«¸øFlex¡£
Õæ·×éºÏ¼ü
Flex¶Ë
¶¨Òå²¢×¢²áOnExternalKeyDown·½·¨£¬ÈÃÍⲿӦÓóÌÐòµ÷Ó㬲ÎÊý°´Êµ¼ÊÇé¿ö½øÐÐÉè¼Æ¡£
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="Init()">
    <mx:Script>
            private
function Init():void
      &#


Ïà¹ØÎĵµ£º

flex ʵÏÖºáÏòÊ÷״ͼ

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="initApp()"
backgroundColor="#FFFFFF">
<mx:Canvas id="paper"
......

flex¹ú¼Ê»¯

£¨ÉÏ£©
µ±ÒªÊ¹Óò»Í¬ÓïÑԵİ汾µÄʱºò£¬±ãÐèÒªÁËÓ¦ÓóÌÐòµÄ¹ú¼Ê»¯¡£
¹ú¼Ê»¯²»µ¥Ö¸×Ö·û´®µÄ¹ú¼Ê»¯£¬»¹ÓÐǶÈëʽ×ÊÔ´£¨Í¼Æ¬£©µÄ¹ú¼Ê»¯£¬½Å±¾ÀඨÒåµÄÒýÓá£ÔÚ³ÌÐòµ±ÖÐʹÓùú¼Ê»¯µÄÒªµã°üÀ¨Á˱àд×ÊÔ´Îļþ£¬²ÎÊýµÄÉèÖ㬱¾µØ»¯Ïà¹ØµÄflex¿ò¼ÜÄÚÈÝ¡£
×ÊÔ´ÎļþÊÇÓúó׺ÃûΪ“.properties”½áÊøµÄÎļþ£¬ÒÔÒ»ÖÖ¼üÖµµÄÐ ......

Flex Tree×é¼þDemo

Õâ¸öDEMO¿ÉÒÔ´´½¨Ò»¸öȫеÄÊ÷Ðͽṹ£¬ÈÃÎҸе½Ææ¹ÖµÄÊÇ£¬ËäÈ»ÎÒÓÃXML¶ø²»ÊÇXMLListCollection/ArrayCollection×÷ΪTreeµÄÊý¾ÝÔ´£¬µ«¶ÔXMLµÄ¸üÐÂÒÀÈ»»áÔÚTreeÖз´Ó³³öÀ´——ÕâËƺõºÍFlexµÄÎĵµÓгåÍ»£¬ÏÂÃæÊÇÒýÓÃFlexÎĵµµÄÒ»¶ÎÄÚÈÝ£º
Raw objects are often not sufficient if you have data that changes, bec ......

FlexͨÐÅƪ——FlexºÍÍⲿ½øÐÐÒ첽ͨÐÅ

ExternalInterface.callµÄÎÊÌâ
ÇëÁôÒâÒÔÏÂÇé¾°£¬ÒªÀûÓÃÍⲿӦÓóÌÐòµ¯³öÎļþÑ¡Ôñ´°Ì壬²¢·µ»ØËùÑ¡µÄÎļþ·¾¶¡£
ʹÓÃExternalInterface.callÀ´ÊµÏÖ£¬µ±Óû§60Ãë(FlexÒѾ­ÉèÖÃ×µÄµÈ´ýʱ¼ä)ÄÚδÄܹ»Íê³ÉÎļþÑ¡Ôñ»áµ¯³ö"1502"µÄ´íÎó£¬ÑÏÖØÓ°ÏìÓû§ÌåÏÖ¡£
ËùÒÔ£¬Ò»Ð©±È½ÏºÄʱµÄ²Ù×÷(³¬¹ý60s)£¬»òÎÞ·¨È·¶¨ºÎʱµ÷ÓÃÍê³ÉµÄ· ......

FLEXÕýÔò±í´ïʽÓï·¨ ÉîδÀ´¼¼Êõ


 .  Æ¥Åä³ý»»Ðзû"\n"ÍâµÄÈÎÒâµ¥¸ö×Ö·û¡£
[] Æ¥ÅäÀ¨ºÅÖÐ×Ö·ûµÄÈÎÒâÒ»¸ö¡£ÓÃ"-"ָʾ×Ö·ûµÄ·¶Î§¡£Èç¹ûµÚÒ»¸ö×Ö·ûÊÇÒÖÑï·ûºÅ"^"£¬ÄÇôËüµÄº¬Òå±äΪƥÅäÀ¨ºÅÄÚ×Ö·ûÒÔÍâÔ®ÈÎÒâ×Ö·û¡£
*  Æ¥ÅäÇ°ÃæÕýÔò±í´ïʽµÄÁã´Î»ò¶à´Î³öÏÖ¡£
+  Æ¥ÅäÇ°ÃæÕýÔò±í´ïʽµÄÒ»´Î»ò¶à´Î³öÏÖ¡£
?  Æ¥ÅäÇ°ÃæÕýÔò±í´ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ