软件截图如下
![](https://yunpstatic.oss-cn-beijing.aliyuncs.com/wp-content/uploads/2024/07/Screen-Shot-2024-07-15-at-02.36.36-1024x718.png)
部分源码如下
<j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel" xmlns:views="top.yunp.mda.views.*" applicationComplete="completed(event)">
<fx:Script>
<![CDATA[
import org.puremvc.as3.multicore.patterns.facade.Facade;
import top.yunp.mda.core.CoreNames;
import org.puremvc.as3.multicore.interfaces.IFacade;
import top.yunp.mda.views.FirstViewMediator;
import top.yunp.mda.core.NotificationNames;
import top.yunp.mda.commands.Startup;
import top.yunp.mda.proxies.IndexedDBProxy;
import top.yunp.mda.commands.RefreshDiaryList;
import top.yunp.mda.commands.EditDiary;
import top.yunp.mda.commands.DeleteDiary;
private function completed(event:*):void
{
document.body.style.width = "100%";
document.body.style.height = "100%";
var facade:IFacade = Facade.getInstance(CoreNames.MAIN);
facade.registerMediator(new FirstViewMediator(firstView));
facade.registerProxy(new IndexedDBProxy());
facade.registerCommand(NotificationNames.REFRESH_DIARY_LIST, RefreshDiaryList);
facade.registerCommand(NotificationNames.STARTUP, Startup);
facade.registerCommand(NotificationNames.EDIT_DIARY, EditDiary);
facade.registerCommand(NotificationNames.DELETE_DIARY, DeleteDiary);
facade.sendNotification(NotificationNames.STARTUP);
}
]]>
</fx:Script>
<j:initialView>
<j:View width="100%" height="100%">
<views:FirstView localId="firstView"/>
</j:View>
</j:initialView>
</j:Application>