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

½ÌÄã7²½ÊµÏÖflex×Ô¶¨ÒåEvent¼°²ÎÊý´«µÝ

¡¡¡¡FlexÓ¦Óÿª·¢¹ý³ÌÖÐÈçÐèÒªÁé»îµÄÔÚ²»Í¬×é¼þ£¨ÈçAÓëB£¬¸¸Óë×Ó£©Ö®¼äÏìӦʼþ£¬´«µÝ²ÎÊýµÈ¹¦ÄÜʱ¾Í»áʹÓÃ×Ô¶¨Òåʼþ£¨Event£©»úÖÆ,ÏÂÃæͨ¹ýÒ»¸öÊÂÀý·ÖÆß²½,ͨ¹ý×Ô¶¨ÒåEventºÍEventDispatcherÁ½ÖÖ»úÖÆʵÏÖʼþ½»»¥ºÍ²ÎÊý´«µÝ;
        ÊÂÀýÃèÊö:¡¡ÓÐÒ»¸ö¸¸ÇדparentApp.mxml”ÓÐÁ½¸ö¶ù×Ó“comBrotherA.mxml”ºÍ"comBrotherB.mxml",ÐÂÄê½µÖÁ£¬Á½¸ö¶ù×ÓΪ±íТÐÄ·Ö±ð¸øËûÃÇÀÏ°Ö´æÈë(ʼþ)Ò»±Ê¹ý½Ú·Ñ(ʼþ²ÎÊý),²¢Í¨ÖªÀÏ°ÖÎÒ´æÇ®½øÈ¥ÁË£¬ÀÏ°ÖÔÚÊÕµ½Á½¸ö¶ù×ÓµÄÇ®ºó»ã×ܺóͬʱ¸æËß(ʼþ)Á½¸ö¶ù×ÓÇ®ÎÒÒÑÊÕµ½×ÜÊý(ʼþ²ÎÊý)ÊǶàÉÙ...
    1¡¢µÚÒ»²½£ºÒýÈë×Ô¶¨Òå×¢²áʼþ²ÎÊý´«µÝÀ©Õ¹Àà(À´×ÔÍøÂç)
    package myeventhelper
{
//×Ô¶¨Òå×¢²áʼþ²ÎÊý´«µÝÀ©Õ¹Àà
public class EventArgExtend
{
public function EventArgExtend()
{
}
public static function create(f:Function,...arg):Function //¶¯Ì¬²ÎÊý´´½¨
{
var F:Boolean = false;
var _f:Function = function(e:*,..._arg)
{
_arg = arg;
if(!F)
{
F = true;
_arg.unshift(e);
}
f.apply(null,_arg);
};
return _f;
}
public static function toString():String
{
return "Class JEventDelegate";
}
}
}

    2¡¢µÚ¶þ²½£º×Ô¶¨Òåʼþ´¥·¢Àࣺ
package myeventhelper
{
import flash.events.EventDispatcher;

import mx.core.UIComponent;
//×Ô¶¨Òåʼþ´¥·¢Àà
public class MyEventDispatcher extends EventDispatcher
{
private static var _instance:MyEventDispatcher;
public static const EXEC_PARENT_METHOD:String="ExecParentMethod"; //Ö´ÐÐParent·½·¨
public static function getI


Ïà¹ØÎĵµ£º

FlexÓÎϷƪ——ÓÎÏ·¿ª·¢¸ÅÊö

¸ÅÊö
ÓÎÏ·¿ª·¢ÊǸöºÜ´óµÄ¿ÎÌ⣬¸ÃϵÁÐÖ»¼òµ¥½²ÊöÈçºÎʹÓÃFlex¼¼Êõƽ̨´î½¨Ò»¸ö¼òµ¥µÄÓÎÏ·¿ò¼Ü£¬ÈçºÎÉè¼ÆÄÜÓÅ»¯ÓÎÏ·µÄCPUÕ¼Óã¬ÄÚ´æµÈ£¬×îºóÖÆ×÷Ò»¸öÍêÕûµÄFlexСÓÎÏ·(ÌṩԴÂë)¡£
ÓÎÏ·µÄ³ÊÏÖ
·½Ê½1£ºÔª¼þ·½Ê½
ÕâÖÖ·½Ê½±È½ÏÊʺÏСÐ͵ÄÓÎÏ·£¬ÓÎÏ·Ôª¼þÊýÁ¿ÉÙµÄÇé¿ö¡£µ±ÓÎÏ·Ôª¼þÊýÁ¿´óʱ¾Í²»ºÏÊÊÁË£ºÔª¼þ»á¶ÔÓÎϷͼÐΡ¢ÒôÆ ......

È¥µôFlexÀ¶É«Ñ¡ÖÐ״̬

 Æäʵһ°ãµÄÇé¿öÏÂÊDz»»áÓõ½ÕâÖÖÇé¿öµÄ£¬Ò»°ãÔÚ³ÌÐòÀ±ÈÈçÑ¡ÖÐÒªÌîдµÄÏîÄ¿£¬¶¼Ï²»¶ÓÐÒ»¸öÑ¡ÖеÄ״̬£¬µ«ÊÇÏÖÔÚÎÒÃÇÀ´¸ö·´ÆäµÀ¶øÐÐ,Èç¹ûÎÒ²»ÏëÒªÕâ¸ö״̬¸ÃÔõô°ìÄØ?
      ²Î¿¼ÁËЩ×ÊÁÏ,ÆäʵҲ¼òµ¥,Óкü¸ÖÖ·½·¨£¬µ«ÊÇ·¢ÏÖÁËÒ»¸ö×îÓÐÓõķ½·¨,Ê×ÏÈÎÒÃÇÔÚÎę̀ÉÏËæÒâ·Å¼¸¸öTEXTINPUT ......

Flex¼¼ÇÉ£º¼ÆËãÆ÷Ô´´úÂë

ÎÊÌâÃèÊö£º
ÊäÈëÒ»¸öÊý£¬È»ºó°´Ä³¸öÔËËã·û£¬ÔÙÊäÈëÁíÒ»¸öÊý£¬°´µÈºÅ¼´¿ÉµÃ³ö½á¹û¡£Ö»°´ÕÕÊäÈë˳Ðò¼ÆËã½á¹û£¬¶ø·Ç°´ÕÕÔËËã·ûÓÅÏȼ¶À´µÃ³ö½á¹û£¬¼´£¬Èç¹û°´Ë³ÐòÊäÈë2+8*3£½»áµÃµ½30£¬¶ø·Ç26.
Ëã·¨ÃèÊö£º
¶¨ÒåÈý¸öÈ«¾Ö±äÁ¿£¬·Ö±ðÊÇfirst£¨Number£©£¬ second£¨Number£©£¬ symbol£¨String£©
first´ú±í¶þÄ¿ÔËËãÖеÚÒ»¸öÊý£¬se ......

Flex ¿Ùͼ³ÌÐò

ÏîÄ¿ÖУ¬Óû§×Ô¶¨ÒåÍ·Ïñ¹¦ÄÜÒªÇóʵÏÖÓû§×Ô¶¨ÒåÍ·Ïñ£¬²¢ÇÒ¿ÉÒÔ×ÔÓÉÑ¡ÔñͼƬָ¶¨ÇøÓò×÷ΪͷÏñÏÔʾ¡£     ڤ˼¿àÏ룬ÕÒÁË°ëÌì×ÊÁÏ£¬ÖÕÓÚÕÒµ½Ò»ÆªÏà¹ØÎÄÕ£¬²¢ÌṩÁËÔ´´úÂë¡£ËäÈ»ÑÛ¿´ÓÐÁËüĿ£¬µ«ÊÇËÆÐзÇÐС£     http://www.flashas.net/html/flashasyy/20080423/2950.html  £ ......

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

<![CDATA[
FlexÖеļüÅÌʼþ
ÒªÔÚFlexÖÐÏìÓ¦¼üÅÌÊäÈ룬ֻÐè×¢²ákeyDownʼþ¼´¿É¡£
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" keyDown="OnKeyDown(event)">
    <mx:Script>
          ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ