私はこのエラーについて話している:
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;
}