【发布时间】:2012-05-16 14:46:28
【问题描述】:
我是 Flash 新手,我正在尝试将模型放到网上,并尝试使用 cast3D 框架。当我尝试第一个教程时,出现了这个错误 :“1046:找不到类型或不是编译时常量:LoadEvent。”发生错误的代码区域:
private function cast3dLoadComplete(event: LoadEvent): void
{
trace("cast3dLoadComplete ");
this.manipulator = new TrackBall(this.animator,this.stage,
this.stage.stageWidth, this.stage.stageHeight,
Manipulator.Y_UP);
this.loaded = true;
removeTimer();
if (loader.loaderror.length)
{
statusText.textColor = 0xff0000;
statusText.text = loader.loaderror;
}
else
{
statusText.visible = false;
}
}
/**
* Handles the load Error event
*/
private function cast3dLoadError(event: LoadEvent): void
{
trace("cast3dLoadError ", event.message );
removeTimer();
statusText.textColor = 0xff0000;
statusText.text = event.message;
}
}
}
谁能告诉我代码有什么问题? 多谢 阿德里安
【问题讨论】:
标签: flash