【发布时间】:2013-01-28 17:54:05
【问题描述】:
我的主应用程序包含一个ClassA。然后主应用程序加载一个模块,在那个模块中我想做:
var classA:InterfaceClassA = new ClassA();
它编译得很好,但我收到了这个警告:
Warning: YourApplication is a module or application that is directly referenced. This will cause YourApplication and all of its dependencies to be linked in with module.YourModule:Module. Using an interface is the recommended practice to avoid this.
我不能使用接口来生成新实例,那么正确的方法是什么?
【问题讨论】:
标签: apache-flex module