ibio / weemvc-actionscript

Automatically exported from code.google.com/p/weemvc
0 stars 0 forks source link

能不能给点思路 #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
果然是最好的flash框架。想用这个框架做个棋牌游戏,flex里��
�建纯ActionScripter项目,发现ui管理、预加载都是问题。能不能
给点思路,或者根本这个框架根本不适合我现在的项目。

Original issue reported on code.google.com by bux...@gmail.com on 15 Apr 2013 at 9:17

GoogleCodeExporter commented 8 years ago
自己找了解决方案,就是自己继续了view,自定义了一个基类v
iew,里面有个m_root,默认根容器,解决了预加载的问题。
还有一个view不能多次实例化。我的解决方案是把ViewLocator里��
�这个方法改了用;
之前;
public function addView(viewClass:Class, stageInstance:String = null):void {
//参数是Class+InstanceName
}
改后;
public function addView($view:IView):IView {
//参数是IView
}

Original comment by bux...@gmail.com on 25 Jun 2013 at 11:17