flexµÄ×Ô¶¨Òåʼþ
package event
{
import flash.events.Event;
public class CustomEvent extends Event
{
public var evObject:Object;
public function CustomEvent(obj:Object, type:String)
{
super(type);
evObject = obj;
}
override public function clone():Event
{
return new CustomEvent(evObject, type);
}
}
}
Õâ¸ö¾ÍÊÇÒ»¸ö×Ô¶¨Òå¿Ø¼þ£¬ËüºÍ´«Í³µÄÇø±ðÔÚÓÚ¿ÉÒÔ×Ô¼º´«ËÍÒ»¸ö²ÎÊý¹ýÈ¥£¬±ÈÈçÁ½¸ö½çÃæµÄ²ÎÊý´«µÝ¡£
±ÈÈçÕâÑùµÄÒ»¸öÀý×Ó£¬µ±datagridµÄijÌõ¼Ç¼˫»÷Ö®ºó£¬´«µÝselectedItem:objectµ½ÁíÍâµÄÒ»¸ö½çÃæÖÐÈ¥
1¡¢usersummary.mxml ------£¨×ӿؼþ£©
DataGrid id=myDg £º doubleClickEnabled="true" doubleClick="transfer(event)"
2¡¢ public function transfer(evt:MouseEvent):void
{
var cusEvent2 : CustomEvent = new CustomEvent(myDg.selectedItem,"itemUserData");
dispatchEvent(cusEvent2);
}
3¡¢ accountmapping.mxml------- £¨userCanvasÊÇÖ÷Ó¦ÓóÌÐò£©
public var UserSelectedData:object='';
userCanvas.usersummary.addEventListener("itemU
Ïà¹ØÎĵµ£º
ActionScript 3.0 ÓïÑÔºÍ×é¼þ²Î¿¼
Foundation ActionoScript3.0 ¶¯»
Learning Flex3
AS3 Cheat Sheets
Flex Frameword Diagram
Rich Internet Applications With Adobe Flex & Java
......
ѧflex¾ÍÊÇΪÁËÌø²Û£¬Íò¶ñµÄ¹«Ë¾£¬Äêµ×ʲô¶¼Ã»ÓУ¬º¦µÄÎÒ¶¼Ã»Ç®»Ø¼Ò£¬±¾ß°¡¡£
ѧflexÒѾÓÐÒ»¶Îʱ¼äÁË£¬ÎÒÊÇjava³ÌÐòÔ±£¬»¶Ó´ó¼Ò½»Á÷
×î½üѧÁ˵ãcairngorm ¸Ð¾õÓÃÆðÀ´±Èstruts·±ËöÒ»µã£¬·Ï»°ÉÙ˵£¬ÉÏ´úÂ룺
1.ÏÈ¿´vo,±¾ÊµÀýÊÇÒ»¸öÌí¼ÓÁªÏµÈ˵ÄСÀý×Ó£¬Ãû×Ö£¬ÓÊÏ䣬Ìí¼Óʱ¼äÈý¸öÊôÐÔ£¬¶¼ÊǸã javaµÄ£¬ÁõÈô ......
flexÕûºÏspringÒ²ÓкܶàµÄÀý×Ó£¬ÆäʵÓкܶàÀý×Ӻܸ´ÔÓ¡£ÎÒÔÚÕâ¾Í¸ø´ó¼Ò½éÉܸö×î¼òµ¥µÄ£¬ºÜʵÓá£
˵Ã÷ÏÂ:flexÍêÈ«¿ÉÒÔ´úÌæstruts£¬ÏÂÃæµÄÀý×ÓÄÜÖ¤Ã÷¡£ÓÐÈË»áÎÊÁË£¬ºÍÆäËû¿ò¼ÜÔõôÑùÕûºÏ¡£spring¶¼ÄÜÕûºÏÁË£¬ÆäËû¿ò¼ÜÄãÒª²»»áÕûºÏÎÒÒ²¶¼ÎÞÓïÁË¡£
²»¶à˵ÁË£¬¿´´úÂë¾ÍÖªµÀ¼òµ¥²»£¡
flex--sdk 3.2ÒÔÉÏ
jdk 1.5 ÒÔÉÏ
spring ......
1. ×î¼òµ¥µÄ¾¯¸æ´°¿Ú
ÄãÐèÒªÏȵ¼ÈëAlertÀࣺ import mx.controls.Alert;
È»ºóÔÚÏëÒªµ¯³ö¾¯¸æµÄʱºòʹÓãº
Alert.show(“ÄãÈ·¶¨ÒªÍ˳öϵͳÂð?”,“È·ÈÏ”,Alert.YES|Alert.NO,null,logout)
²ÎÊý˵Ã÷£ºµÚÒ»¸ö²ÎÊýÊÇÒªÏÔʾµÄÎı¾£¬µÚ¶þ¸ö²ÎÊýÊÇ´°¿ÚµÄ±êÌ⣬ÕâÁ½¸ö²ÎÊýÊÇ×î¾³£Óõġ£µÚÈý¸ö²ÎÊýÊÇ°´Å¥£ ......