我说的是这个错误:
ERROR 1046: Type was not found or was not a compile-time constant: CustomType
其中 CustomType 在.as
文件的类中定义。我知道您需要导入该文件以避免此错误,但我的问题是,是否有针对此错误的错误处理程序?
我的意思是,有没有办法说,例如:
onErrorHandler {
trace("You need to import the class!");
} else {
private var myObject:CustomType;
}