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

¹ØÓÚFlexµÄʼþ²¶»ñÎÊÌ⣬ÇëÐÖµÜÃÇ°ïÎÒ½â¾ö£¬Ð»¹ý~~~~

ÎÊÌâÊÇÕâÑùµÄ£¬ÎÒ×Ô¼ºÐ´ÁËÒ»¸ömodelÀ࣬Ëü¼Ì³Ð×ÔEventDispatcher£¬È»ºóÔÚÖ÷mxmlÖзÅÖÃÒ»¸öbuttonºÍÒ»¸öpanel£¬ÒªÇóµã»÷buttonºó£¬ÔÚbuttonµÄÏìÓ¦º¯ÊýÖÐnew ³ömodelµÄ¶ÔÏóm£¬È»ºóÓÃm·¢ËÍMouseEvent.CLICKÏûÏ¢£¬panelµ±È»»áÔÚÕû¸ö³ÌÐòµÄ³õʼ»¯Ê±Ìí¼ÓÕâ¸öÏûÏ¢µÄ¼à¿ØÆ÷£¬Èç¹ûpanel½ÓÊÕµ½Õâ¸öÏûÏ¢£¬ÔòÌáʾpanel clicked¡£
  µ«ÊÇÏÖÔÚpanel²»ÄܽÓÊÕµ½Õâ¸öÏûÏ¢£¬ÉÔ΢¸Ä±ä³ÌÐòÈçÏÂ:
  1.ÔÚmÉÏÌí¼ÓÏûÏ¢¼à¿ØÆ÷£¬mÄܽÓÊÕÕâ¸öÏûÏ¢; 
  2.ÔÚÖ÷mxmlÖÐËæÒâ·ÅÖÃÒ»¸ö¿Ø¼þ£¬ÀûÓÃËü·¢ËÍÏûÏ¢£¬panelÄܽÓÊÕ¡£
  ÏÖÔÚÎÒµÄÒªÇóÊÇʹÓÃm¶ÔÏó·¢ËÍÏûÏ¢£¬È»ºópanelÀ´½ÓÊÕÏûÏ¢¡£ Çë¸÷λ´ó´óÏàÖú£¡£¡£¡£¡Íò·Ö¸Ð¼¤~~~~
  ÏÂÃæÊÇ´úÂë:
model.as
Java code:
package
{

import flash.events.EventDispatcher;

public class model extends EventDispatcher
{
public function model()
{
}
}

}


test.mxml
XML code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()" xmlns:local="*">

<mx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.events.Event;
inte


Ïà¹ØÎÊ´ð£º

flexµÄaddEventListener ÎÊÌâ

flexµÄaddEventListener ÀïÃ溯Êý²»ÄÜ´ø²ÎÊý°¡¡£
ÎÒÏÖÔڵŦÄÜÊÇÕâÑù¡£¡£
ÔÚ·þÎñÆ÷¶ËµÃµ½Ò»¸öArrayCollection ,È»ºó±éÀúÕâ¸öÊý×飬£¬È»ºóÔÚ¶¯Ì¬´´½¨button,buttonµÄclick¸ù¾ÝArrayCollection ÀïÃæ¶ÔÏóµÄid,ä¯ÀÀ¶ÔÏ ......

ÐÂÊÖÇóÈçºÎÔÚFLEXÖ÷³ÌÐòµ÷ÓÃ×Ô¶¨Òå×é¼þ

×Ô¶¨Òå×é¼þÔÚcomponentĿ¼Ï¡£×Ô¶¨Òå×é¼þ´úÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="verti ......

[ÉîÛÚ]ÕÐƸFlex³ÌÐòÔ± - °¤ÌßÖ°ÑÄ / ÀðÓãÁúÔ¾

1.È«ÈÕÖÆÕý¹æ±¾¿Æ¼ÆËã»úÏà¹Øרҵ±ÏÒµ£¬Á½ÄêÒÔÉÏÏà¹Ø¹¤×÷¾­Ñ飻
2.ÊìÁ·Ê¹ÓÃAction Script 3.0ÔÚFlexBuilder»·¾³Ï¿ª·¢£¬ÊìÁ·Ê¹ÓÃFlexÓëAIRµÄ±ê×¼×é¼þ£»
3.Á˽âJavaScript¡¢CSS¡¢Ajax £»
4.¾ßÓÐÁ¼ºÃµÄ¾´Òµ¾«ÉñºÍÍŶ ......

flex ÏÂͼÐÎÎÊÌ⣨¼±µÈ£©

СµÜ×î½üÔÚ×öÒ»¸öflexÏîÄ¿£¬ÐèÒª×öÒ»¸ö¾ºÕùÁ¦ÅÅÃûµÄͼÐΣ¬ÐèÒªYÖáʽ¸º×ø±ê£¬Ò²¾ÍÊÇyÖáÔÚxÖáÏÂÃæµÄÄÇÖÖ£¬µ«ËùÓÐÓеÄÀý×Ó¶¼ÊÇYÖáΪÕý×ø±êµÄ£¬ÏëÇëÎʸ÷λÊÇÐèÒª¶ÔÄĸöÊôÐÔ½øÐе÷ÕûÂð
<?xml version="1.0" ......

»¹ÏëÎÊÎÊ£¬FLEX·´Éä½Ð·´ÉäÂð

´ó¼ÒÌÖÂÛÌÖÂÛflexµÄ·´Éäµ½µ×³ÆµÄÉÏ·´ÉäÂð£¿
  ˵ÊÇÓз´É䣬µ«ÊÇ·´ÉäµÄÓеã¶àÓàÁË¡£¡£
APIÉÏÓÐÒ»¸öº¯ÊýµÄ˵Ã÷ÊÇÕâÑùдµÄ
describeType () º¯Êý 
Éú³ÉÃèÊö ActionScript ¶ÔÏó£¨ÃüÃûΪ·½·¨µÄ²ÎÊý£©µÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ