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

flexµÄaddEventListener ÎÊÌâ

flexµÄaddEventListener ÀïÃæº¯Êý²»ÄÜ´ø²ÎÊý°¡¡£

ÎÒÏÖÔڵŦÄÜÊÇÕâÑù¡£¡£

ÔÚ·þÎñÆ÷¶ËµÃµ½Ò»¸öArrayCollection ,È»ºó±éÀúÕâ¸öÊý×飬£¬È»ºóÔÚ¶¯Ì¬´´½¨button,buttonµÄclick¸ù¾ÝArrayCollection ÀïÃæ¶ÔÏóµÄid,ä¯ÀÀ¶ÔÏóµÄÐÅÏ¢¡£¡£ÎÊÌâÊÇÎÒÔõô°ÑID·Åµ½º¯ÊýÀï°¡¡£¡£

ÏÂÃæÊÇÎҵĴúÂë

Java code:


for(var i:int=0;i<categorys.length;i++){
var lbtn:LinkButton=new LinkButton();
lbtn.setStyle("rollOverEffect",overSound);
lbtn.setStyle("mouseUpEffect",mouseUpSound);
lbtn.label=categorys.getItemAt(i).name+"("+categorys.getItemAt(i).total+")";
lbtn.addEventListener(MouseEvent.CLICK,view);
}




  lbtn.addEventListener(MouseEvent.CLICK,view);


ÎÒ¸Ä³É lbtn.addEventListener(MouseEvent.CLICK,view(event,categorys.getItemAt(i).id));

²»ÐС£¡£ÓÐʲô°ì·¨£¬¡£¿ÉÒԸ㶨µÄ°¡¡£¡£

¸ø°´Å¥Ìí¼ÓÒ»¸ö×Ô¶¨ÒåÊôÐÔ£¬°Ñid¸³¸øÕâ¸öÊôÐÔ£¬È»ºóÔÚonclickÀï´¦Àí¡£

lbtn.addEventListener(MouseEvent.CLICK,
function(e:MouseEvent){
//ÕâÀï¿ÉÒÔ·ÃÎÊi
}
);

²Î¿¼ FLEX×Ô¶¨ÒåEvent


·ÇµÃÒª²ÎÊýô£¬¶¨Òå¸öÈ«¾ÖÁ¿£¬Ê¹ÓÃÈ«¾ÖÁ¿¶Ô²ÎÊý½øÐвÙ×÷¾ÍÐÐÁË¡£

¸øbuttonÌí¼ÓÒ»¸öÊôÐÔidµÄ·½·¨¿ÉÐС£µ«¿´ÍêÁËÂ¥Éϵ쬾õµÃÓÃÄäÃû


Ïà¹ØÎÊ´ð£º

flexÈçºÎʵÏÖ°ÙÒ¶´°ÌØÐ§£¿

ÔÚflashÖкÜÈÝÒ×ÄÜʵÏÖ°ÙÒ¶´°Ð§¹û£¬²»ÖªµÀflexÖÐÄÜ·ñͬÑùʵÏÖ¸ÃЧ¹û£¿

flexÖÐÃ²ËÆ²»ÐУ¬
air¿ÉÒÔ


mark

°ÙÒ¶´°ÊǶà¸öÍøÒ³ÔÚͬһ¸öÒ³ÃæÇл»Âð£¿

ÒýÓÃ
effects\Blinds.as
JScript code
package effec ......

flex×ÀÃæÓ¦ÓóÌÐò

ÇëÎʸßÊÖ£¬flex×ÀÃæÓ¦ÓóÌÐò¿ÉÒÔʹÓÃBlazeDS¿ò¼ÜÂð? ÎÒÊÔÁËÒ»ÏÂûÓгɹ¦!
Ó¦¸ÃÊÇ¿ÉÒԵġ£
²»³É¹¦Ìáʾʲô?


¿ÉÒÔ£¬²»¹ýÔÚserviceÖбØÐëÊÖ¶¯ÉèÖÃendpointÊôÐÔ¡£

ÎÒ×öµÄʵÀýÊÇflex¹Ù·½ÉϵĵÚÒ»¸öÀý×Ó£¬µ÷ ......

flexÖÆ×÷ƽ»¬µÄ¹öÆÁЧ¹û

֮ǰͨ¹ýmoveÌØ¼¼ÊµÏÖÁËÒ»¸ö¹öÆÁµÄЧ¹û£¬±È½Ï¼òµ¥£¬¾ÍÊÇÔÚmoveÌØ¼¼ÀïÃæÉèÖÃxfromºÍxtoÊôÐÔÈ»ºóÖ±½Óplay£¬µ«ÊÇ·¢ÏÖÈç¹û¹ö¶¯µÄËÙ¶È¿ìµÄ»°£¬¾Í»á³öÏÖ¶¶¶¯µÄÇé¿ö£¬²»¹»Æ½»¬£¬ÇëÎÊÓÐûÓкõĽâ¾ö°ì·¨£¬ÓÃflexÉú³ÉÏà¶Ôƽ»¬ ......

Flex ¸ß½ÚͼƬÁÁ¶È

flex ÖÐ <mx:images>¿Ø¼þÓÐûÓе÷½ÚͼƬÁÁ¶ÈÕâ¸ö¿Ø¼þ°¡,,,,ÎÒÏë°ÑͼƬÁÁ¶Èµ÷µÍ£¬ÈçºÎʵÏÖÄØ£¬£¬ÔÚÏߵȴ𰸡£¡£¡£
<mx:Image x="48"  height="30"  width="30 " ......

¹ØÓÚflex²¥·ÅÆ÷µÄÎÊÌâ

ÒÔǰÁ˽â¹ýflexµ«Ã»Ñ§Ï°¹ý-0 -

ÏÖÔÚ×öÏîÄ¿ÐèÒªÓÃflex×öÒ»¸ö²¥·ÅÆ÷¡£

Õâ¸öÎÒÕÒµÄÔ´Âë¡£

²âÊÔ¹ýûÎÊÌâ¡£

ÏÈ¿¸¹ýÕâÖÜ¡£ÖÜÄ©»Ø¼ÒϵͳµÄѧϰÏÂ×Ô¼ºÐ´Ò»¸ö¡£

µ«ÊÇÏÖÔÚÎÊÌâ¹Ø¼üÊÇÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ