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

Flexʼþ»úÖÆ

Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(¡°click¡±,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=¡°click a button!¡±;}//ʼþÏìÓ¦º¯Êý ÄÇôע²áʼþ×¢²áʲôÄØ£¿Í¨¹ýaddEventListener×¢²áº¯ÊýµÄ²ÎÊý¿ÉÒÔ¿´³ö£¬Ê×ÏÈÐèҪע²áʼþÀàÐÍ£¨µÚÒ»¸ö²ÎÊý£©£¬È»ºó×¢²áÏìÓ¦º¯Êý£¬¼´Ê¼þ·¢ÉúºóÐèÒª×öʲôÊÂÇ飬Ҳ¾ÍÊÇ˵µ÷ÓÃÄÄÒ»¸ö·½·¨¡£ ÄÇôÏìÓ¦º¯ÊýÐèҪʲôҪÇóÄØ£¿ÏìÓ¦º¯Êý±ØÐëÒªÒ»¸ö²ÎÊý£¬Ö¸Ã÷×¢²áµÄʼþµÄʼþÀàÐÍ£¬ÈçÉÏÃæµÄÀý×Ó£¬ÎÒÃÇ×¢²áµÄÊÇÒ»¸öÊó±êʼþÀàÐÍ£¬¼´Êó±êµ¥»÷ʼþ¡£
×¢²áµÄʼþÀàÐͱØÐëºÍÏìÓ¦º¯ÊýµÄʼþÀàÐÍÒ»Ö£¡ µ½µ×ÓÐÄÄЩʼþÀàÐÍÄØ£¿³ýÁËÓÐϵͳĬÈϵÄʼþÀàÐÍÍ⣬ÎÒÃÇ¿ÉÒÔ¶¨Òå×Ô¼ºµÄʼþºÍʼþÀàÐÍ¡£
¼òµ¥µÄ˵£¬Ê¼þÀàÐ;ÍÊǶ¨ÒåÔÚʼþÀàµÄ³£Á¿ÊôÐÔ¡£ ʼþÁ÷ 1.²¶»ñ½×¶Î£¨´Ó¸ù½Úµãµ½×ӽڵ㣬¼ì²â¶ÔÏóÊÇ·ñ×¢²áÁ˼àÌýÆ÷£¬ÊÇÔòµ÷ÓüàÌýº¯Êý£©
2.Ä¿±ê½×¶Î£¨µ÷ÓÃÄ¿±ê¶ÔÏó±¾Éí×¢²áµÄ¼àÌý³ÌÐò£©
3.ðÅݽ׶Σ¨´ÓÄ¿±ê½Úµãµ½¸ù½Úµã£¬¼ì²â¶ÔÏóÊÇ·ñ×¢²áÁ˼àÌýÆ÷£¬ÊÇÔòµ÷ÓüàÌýº¯Êý£©
×¢£ºÊ¼þ·¢Éúºó£¬Ã¿¸ö½Úµã¿ÉÒÔÓÐ2¸ö»ú»á£¨2Ñ¡1£©ÏìӦʼþ£¬Ä¬ÈϹرղ¶»ñ½×¶Î¡£
´ÓÉϵ½Ï£¨´Ó¸ùµ½Ä¿±ê£©ÊDz¶»ñ½×¶Î£¬µ½´ïÁËÄ¿±êºóÊÇÄ¿±ê½×¶Î£¬È»ºó´ÓÄ¿±êÏòÉÏ·µ»ØÊÇðÅݽ׶Ρ£ ÔõÑùÀí½âʼþÁ÷£¿
µ±Ê¼þ·¢Éúʱ£¬FLEXͨ¹ýʼþµÄ·Ö·¢Æ÷EventDispatcher½øÐÐʼþ·Ö·¢£¬·Ö·¢µÄ˳ÐòÊÇ£º´ÓÉÏÍùϵ½´ïÄ¿±ê£¬È»ºó´ÓÏÂÍùÉÏ£¬´ÓÄ¿±ê¿ªÊ¼·µ»Ø¡£ÈçÉÏÃæ1¡¢2¡¢3Ëù˵µÄÄÇÑù£¬ÕâÀï¾Í»áÓÐÒ»¸öÎÊÌ⣬ÔÚʼþµÄÁ÷¾­¹ý³ÌÖУ¬²»ÊÇÄ¿±êµÄ¶ÔÏóÈç¹û×¢²áÁËʼþ£¬Ò²ÓÐÁËÏàÓ¦µÄʼþÏìÓ¦º¯Êý£¬ÄÇô²»ÊÇÄ¿±êµÄ¶ÔÏóÏìÓ¦ÁËʼþµÄ´¦Àí£¬ÕâÔõô°ìÄØ£¿
ÓÉÓÚÉÏÃæ˵µÄÄÇÑù£¬addEventListenerÔÚÖ»ÓÐÈçÉÏÁ½¸ö²ÎÊýµÄÄÁÈËÇé¿öÏÂÊǹرղ¶»ñ½×¶ÎµÄ£¬Ò²¾ÍÊÇ˵ʼþÁ÷ÊÇ´ÓÄ¿±ê½×¶Î¿ªÊ¼µÄ£¬È»ºóÊÇðÅݽ׶Σ¬µ±³öÏÖÈÝÆ÷°üº¬¿Ø¼þµÄʱºò£¬¿ÉÒÔʹÓÃÅжÏ
if(evt.target == evt.currentTarget)
À´È·¶¨µ±Ç°Ê¼þÁ÷Éϵĵ±Ç°Á÷¾­¶ÔÏóÊÇ·ñ¾ÍÊÇÄ¿±ê¶ÔÏó£¬Èç¹ûÊǾͽøÐÐÏàÓ¦µÄ´¦Àí¡£ ÒƳý¶ÔÏóµÄʼþÁ÷£ºremoveEventListener(),²ÎÊýÓë×¢²áʼþÏàͬ¡£
×è¶ÏʼþÁ÷ÖÐÄ¿±ê¶ÔÏóµÄºó¼Ìʼþ£¬¼´Í¨¹ýÁËÄ¿±ê½×¶Îºó×èֹðÅݽ׶Σº
eventÀàµÄ·½·¨£ºpublic function stopImmediatePropagation():void EventÀà Event


Ïà¹ØÎĵµ£º

Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½

Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æ鶵ÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æй¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£ ......

Flex°²È«É³Ïä

ÎÄÕÂÒ»£ºhttp://blog.csdn.net/eyking/archive/2009/10/21/4702330.aspx
Flex¾ÍÊÇÖÂÁ¦ÓÚRIAµÄÓ¦Óã¬AdobeΪÁËÀ©´óÕ½³¡£¬ÍƳöÁËAIR»·¾³£¬ÄÇô´Ëʱ²ÉÓÃFlex±àдµÄ³ÌÐòÔÚä¯ÀÀÆ÷ÖÐÓë×ÀÃæ»·¾³Ï¶¼¿ÉÒԺܺõÄÒÆÖ²ÁË¡£ÏñFlexÓëFlashÕâÑùÆæ¹ÖµÄ¶«Î÷£¬Õ½³¡²»½ö½öÔÚä¯ÀÀÆ÷ÉÏ£¬»¹Åܵ½ÁË×ÀÃæ»·¾³Ï¡£Ò»¸öºÜÖØÒªµÄ°²È«Ä£Ð;ͱ»Ìá³öÁË£ºF ......

FLEX TitleWindowÖ®¼äÊý¾Ý´«ÊäµÄʾÀý


ÔÚFlexÀһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true) ......

FLEX ·ÂGoogleÁªÏë¿òЧ¹û

FLEX--·ÂGoogleÁªÏë¿òЧ¹û--ÏÖÔںöàµØ·½¶¼Óõ½ÁËÕâÑùµÄЧ¹û,µ±È»,ÏÖÔÚGoogleÏÂÏßÁË,²»ÈÃÓÃÁË,µ«ÊǸúÍøÉÏ˵µÄÒ»Ñù,Ïë°ì·¨,Ëü»¹ÊÇÄܳöÀ´µÄ
Ê×ÏÈÊÇʼþÔ´£¬Ò²¾ÍÊǴӺζøÆð£¬ÈçϵÄÒ»¸öÊäÈë¿ò£º
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<mx:FormItem label="¼¯ÍÅ¿Í»§:" width="42%">
<!--change1-->
<mx:TextInput id="txt ......

Flex Alert


<?xml version="1.0"?>  
<!-- Simple example to demonstrate the Alert control. -->  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">  
  
    <mx:Script& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ