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

ʹÓÃ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


Ïà¹ØÎĵµ£º

Flex ʱ¼ä¸ñʽ»¯ (ת»»)

ÔÚFlexÓ¦ÓÃÖг£³£ÐèÒªÒÔÒ»¶¨µÄ¸ñʽÀ´ÏÔʾʱ¼ä£¬ÒÔÏÂÊÇÒ»ÖÖ×ö·¨¡£
Ê×ÏÈ´´½¨Ò»¸öDateFormatter ¿Ø¼þ
<mx:DateFormatter id="df" formatString="YYYY-MM-DD JJ:NN:SS"/>
formatString="YYYY-MM-DD JJ:NN:SS"Ö¸¶¨ÁËʱ¼äµÄ¸ñʽΪ2009-6-20 19:02:27£¬ÕâÀï¿ÉÒÔÉèÖóÉ×Ô¼ºÐèÒªµÄ¸ñʽ¡£
È»ºóд¸öº¯Êý
    ......

Flex RadarChart À×´ïͼ


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Àïà ......

flex·ÖÒ³

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="initApp()">
 <mx:Script>
  <![CDATA[
   public var pageRecordes:uint = 8;
   public var totalPages:ui ......

AIRÊÇʲô£¿.airÎļþÈçºÎ´ò¿ª£¿flexÈçºÎÔËÐÐairÎļþ

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ