¹ØÓÚ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
Ïà¹ØÎÊ´ð£º
ÈçÌâ
http://riashanghai.com/zh-hant/node/48
²Î¿¼Ò»Ï°ɡ£
±ØÐë×Ô¼ºÐ´preloader
ÎÒÖ¸µÄÊÇÉèÖà preloaderµÄ±³¾°É«
preloader ÔçÒѾдºÃ
Â¥ÉϽ¨Òé²»´í£¬Ö»ÊÇÏë°ÑpreloaderµÄ±³¾°×ö³É½¥±äµÄ
......
ÎÒÊǸöjava ²ËÄñ µ«ÊǶÔjava ºÜ¸ÐÐËȤ Ïë×ö¸öÀàËÆÍ¨Ñ¶qq·½ÃæµÄ¼´Ê±Í¨Ñ¶Èí¼þ µ«ÊÇȱ·¦Õâ·½ÃæµÄ×ÊÁÏ £¡£¡Ï£ÍûÄÄλ¸ßÊÖÄܸøÎÒµã×ÊÁÏ ×îºÃÊÇȫһµãµÄ ÈÃÎÒ¼ÌÐø×ßÏÂÈ¥ £¡£¡ ÖÔÐĸÐл £¡£¡£¡ ÓÊÏä rz_string@126.com ......
flex datagrid ÀïÒþ²ØÄ³Ò»ÐÐÊý¾Ý,Íò·Ö¸Ðл
ÀýÈç,µã»÷°´Å¥Òþ²ØÄ³Ò»ÐÐÊý¾Ý
ÔÚµãÒ»ÏÂÓÖÏÔʾ³öÀ´,лл,×îºÃ¸ø´úÂë,лл,¸Õ¿ªÊ¼Ñ§²»³¤Ê±¼ä
¿ÉÒԸıädataProvider£¬removeÒ»¸öitem¾Í¿ÉÒÔÁË£¬removeµÄitem´æÔÚÒ»¸östackÖ ......
1.È«ÈÕÖÆÕý¹æ±¾¿Æ¼ÆËã»úÏà¹Ø×¨Òµ±ÏÒµ£¬Á½ÄêÒÔÉÏÏà¹Ø¹¤×÷¾Ñ飻
2.ÊìÁ·Ê¹ÓÃAction Script 3.0ÔÚFlexBuilder»·¾³Ï¿ª·¢£¬ÊìÁ·Ê¹ÓÃFlexÓëAIRµÄ±ê×¼×é¼þ£»
3.Á˽âJavaScript¡¢CSS¡¢Ajax £»
4.¾ßÓÐÁ¼ºÃµÄ¾´Òµ¾«ÉñºÍÍŶ ......
×î½ü¸Õѧflex£¬ÒªÇó±àдһ¸öΧÆå³ÌÐò£¬Ä¿Ç°ÕýÄѰ¡¡£ÓÐË×ö¹ý°¡£¬¸÷¸öÎĵµ¿´Ï°¡¡£Ð»Ð»À²£¡
End_rbody_64451718//-->
¸Ã»Ø¸´ÓÚ2010-04-06 14:03:36±»°æÖ÷ɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ ......