[Fault] exception,information = Error:Injector缺少一个映射来处理对象“[object LoadFilePayloadCommand]”的属性“data”的注入,类型为“game.uitils.loader.controller.commands :: LoadFilePayloadCommand”。目标依赖:“game.uitils.loader.vo :: LoaderVo |”
protected function addLoader(url:String, cmp:Function=null, format:String="binary", compress:Boolean = true, illusion:String="N_N_U_S", retry:int=3, endian:String="littleEndian", prog:Function=null):void {
var loaderVo:LoaderVo = new LoaderVo();
loaderVo.setData(url, cmp, format, compress, illusion, retry, endian, null, prog);
var scp:SubCommandPayload = new SubCommandPayload(loaderVo).withName("loaderdata").ofClass(LoaderVo);
add(LoadFilePayloadCommand).withPayloads(scp);
}
public class LoadFilePayloadCommand extends BaseLoadFileCommand
{
[Inject(namespace='loaderdata')]
public var data:LoaderVo;
public function LoadFilePayloadCommand()
{
super();
}
override public function execute():void
{
loadervo = this.data;
loadFile();
}
}
我在顶部遇到了错误,但我不知道哪里出错了,如果你知道的话请告诉我。
答案 0 :(得分:0)
如果您拥有适用于' LoaderVo'的正确注射地图,请在配置方法中检查您的AppConfig(IConfig)。对象