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
Ïà¹ØÎĵµ£º
<?xml version="1.0"?>
<!-- Simple example to demonstrate the Alert control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script& ......
Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(¡°click¡±,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=¡°click a button!¡±;}//ʼþÏìÓ¦º¯Êý ÄÇôע²áʼþ×¢²áÊ²Ã´ÄØ£¿Í¨ ......
±¾ÎÄÁÐÊöÁË13¸öJava³ÌÐòÔ±Ó¦µ±Ñ§Ï°FlexºÍBlazeDSµÄÀíÓÉ£¬ÌÖÂÛ ÁËΪʲôFlex½áºÏBlazeDSÊÇ¿ª·¢RIAµÄ×î¼Ñ×éºÏÖ®Ò»¡£ÎÞ ÂÛÊǸ߶Ƚ»»¥µÄÍøÕ¾»¹ÊÇÒÔJavaΪºó¶ËµÄÆóÒµÓ¦Óã¬ÕâÏî×éºÏ¶¼ÊÇ×î¼ÑÑ¡ÔñÖ®Ò»¡£¸üÖØÒªµÄÊÇ£¬ÕâÏî×éºÏÄÜͬʱΪ¿ª·¢Ô±ºÍÆóÒµ´øÀ´¸ß»Ø±¨£¨ROI£©¡£
ÔÚ²ûÊöJava³ÌÐòÔ±Ó¦µ±Ñ§Ï°BlazeDSµÄ13ÌõÀíÓÉʱ£¬ÎÒÒÔÒ»¸ö¼ÙÏëµ ......
flexÕûºÏspringÒ²ÓкܶàµÄÀý×Ó£¬ÆäʵÓкܶàÀý×Ӻܸ´ÔÓ¡£ÎÒÔÚÕâ¾Í¸ø´ó¼Ò½éÉܸö×î¼òµ¥µÄ£¬ºÜʵÓá£
˵Ã÷ÏÂ:flexÍêÈ«¿ÉÒÔ´úÌæstruts£¬ÏÂÃæµÄÀý×ÓÄÜÖ¤Ã÷¡£ÓÐÈË»áÎÊÁË£¬ºÍÆäËû¿ò¼ÜÔõôÑùÕûºÏ¡£spring¶¼ÄÜÕûºÏÁË£¬ÆäËû¿ò¼ÜÄãÒª²»»áÕûºÏÎÒÒ²¶¼ÎÞÓïÁË¡£
²»¶à˵ÁË£¬¿´´úÂë¾ÍÖªµÀ¼òµ¥²»£¡
flex--sdk 3.2ÒÔÉÏ
jdk 1.5 ÒÔÉÏ
spring ......