ʹÓÃFabrication+PureMVC¿ª·¢multi modular FlexÓ¦ÓÃ
PureMVCʵÏÖÁ˼òµ¥µÄMVC¿ò¼Ü£¬½«Ó¦Ó÷ÖΪmodel¡¢viewºÍcontrolÈý²¿·Ö¡£
ºÃ´¦ºÜ¶àÁË£¬½µµÍÁËÄ£¿éÖ®¼äµÄñîºÏÐÔ¡¢Ìá¸ßÁ˳ÌÐòµÄ¿Éά»¤ÐԺͿÉÀ©Õ¹ÐÔ¡£
fabricationÔÚPureMVC»ù´¡ÉÏ×öÁËÀ©Õ¹£¬¼ò»¯ÁËpureMVCµÄ¿ª·¢ÄѶȣ¬ÏÂÃæ¼òµ¥½éÉÜÒ»ÏÂfabricationµÄ¿ª·¢¹ý³Ì¡£
Ê×ÏÈ£¬¸ù¾ÝÐèҪʵÏÖorg.puremvc.as3.multicore.utilities.fabrication.components.FlexModule¡¢FlexApplication¡¢FlashApplication»òÕßAirApplication¡£Õâ¾ÍÊÇViewÁË¡£
ÔÚViewÖÐʵÏÖoverride public function getStartupCommand():Class ·½·¨¡£·µ»Ø³õʼ»¯CommandÀ࣬ÈçÏ£º
public class ConfigModuleStartupCommand extends SimpleFabricationCommand {
override public function execute(note:INotification):void {
registerProxy(new GetPropertyProxy());
registerCommand(ShellConstants.USERINFO_FIND, FindUserInfoCommand);
registerMediator(new ConfigModuleMediator(note.getBody() as ConfigModule));
}
}
ÔÚ³õʼ»¯ÀàÖУ¬ÐèҪע²áËùÐèÒªµÄProxy¡¢CommandºÍMediator£¬ProxyÖ÷ÒªÓÃ×÷ºÍºǫ́½øÐн»»¥£¬²éѯºÍÐÞ¸ÄÊý¾Ý£¬Õâ¾ÍÊÇmodelÁË¡£
CommandÓÃ×÷½ÓÊÕViewÖеÄʼþ£¬²¢×ö´¦Àí£¬Ò»°ãÇé¿öϾÍÊǵ÷ÓÃProxyµÄ·½·¨¡£ÈçÏ£º
public class GetPropertyCommand extends SimpleFabricationCommand {
override public function execute(note:INotification):void {
var getPropertyProxy:GetPropertyProxy = retrieveProxy(GetPropertyProxy.NAME) as GetPropertyProxy;
getPropertyProxy.fetchProperty();
}
}
µ±Proxy·½·¨µÃµ½ºǫ́·´À¡ºó£¬»á³ö·¢³É¹¦»òʧ°ÜµÄʼþ¡£ÈçÏ£º
public class GetPropertyProxy extends FabricationProxy
{
static public const NAME:String = "GetPropertyProxy";
private var _remoteService:RemoteObject;
public function GetPropertyProxy(name:String = NAME, data:Object = null)
{
super(name, data);
setup();
}
private function setup():void{
_remoteService = new RemoteObject();
_remoteService.destination = "sysService";
_remoteService.showBusyCursor = true;
_remoteService.addEventListener(ResultEvent.RESULT, result);
_remoteService.addEventListener(FaultEvent.FAULT, failed);
}
p
Ïà¹ØÎĵµ£º
ת×Ôhttp://gdljg0460.javaeye.com/blog/268848
1. Flexbox
http://flexbox.mrinalwadhwa.com/
ÕâÊÇһλÀ´×ÔÓ¡¶ÈµÄflex¿ª·¢ÕßÔÚ07Äê2Ô·ݽ¨Á¢µÄflex×é¼þ¿â£¬ÀïÃæÒ²Óв»Éٺö«Î÷¡£
2. Flexlib
http://code.google.com/p/flexlib/
ÓÉDougmccuneµÈÈ˽¨Á¢µÄflex×é¼þ¿â£¬ÆäÖÐÓв»ÉÙʵÓõÄ×é¼þ¡£
3.SpringGraph Flex Compo ......
sdk3.2 Ï»áÓдËÎÊÌâ.
ÏîÄ¿ÖÐÏëÓÃmoduleLoader¼ÓÔØÄ£¿é,´ïµ½Ä£¿é»¯¿ª·¢µÄÄ¿µÄ.µ«ÊdzöÏÖÁ˹²Ïí±äÁ¿µÄÎÊÌâ:
TypeError: Error #1034: Ç¿ÖÆ×ª»»ÀàÐÍʧ°Ü:ÎÞ·¨½« Object@406e651 ת»»Îª mx.messaging.messages.IMessage¡£
´úÂë+ÉÏ// import mx.managers.PopUpManager;
// private var popUpManage ......
Flex RadarChart À×´ïͼ
ÍÆ¼ö½â¾ö·½°¸£º
²Î¿¼ÍøÕ¾
http://lab.kapit.fr/display/radarchart/Download
Èí¼þÐí¿ÉÐÒé¿ÉÒÔʹÓÃÉçÇøÃâ·Ñ°æ
±¾:http://lab.kapit.fr/display/Store/Free+License
ÏÂÔØ×îеÄRadarChartDemo-
Community-1.X.zip
ÏÂÔØ°üÀïRadarChartDemo-Community-1.5.2Óиö
Readme_Application.pdfÀïà ......
¹¤³ÌϵÄhistoryÎļþ¼ÐÏ´æ·ÅÈý¸öÎļþ£ºindex.template.html£¬rightClick.js,swfobject.js
srcÎļþ¼ÐÏ´æ·ÅCustomContextMenu.mxmlÎļþ¡£
1.CustomContextMenu.mxml£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
applicati ......
1 °²×°Adobe AIR ÔËÐÐʱ£¬ºÍjavaµÄJVMÀàËÆ¡£
Adobe AIR ÔËÐÐʱÔÊÐíÔÚ×ÀÃæÔËÐÐAIRÓ¦ÓóÌÐò£¬ÍÑÀëÓÎÀÀÆ÷µÄÊø¸¿¡£
ÏÂÔØ°²×°Îļþhttp://labs.adobe.com/downloads/air.html
ÔÚÏÂÔØÒ³ÃæÓÐÑùÀý³ÌÐò£¨Sample Applications£©http://labs.adobe.com/technologies/air/samples/
2 °²×°¿ª·¢»·¾³
µ±È»ÎÒÃÇÑ¡Ôñ¿ª·¢Ð§ÂÊ×î¸ßµÄFlex B ......