我正在尝试创建这种非常简单的 hello world 类型的应用程序。而且无论我尝试什么,我都会收到此错误。这是 TheSimplestPlayer.as 文件中类的错误和定义。
VerifyError: Error #1079: Native methods are not allowed in loaded code.
ReferenceError: Error #1065: Variable TheSimplestPlayer is not defined.
package
{
import flash.display.Sprite;
public class TheSimplestPlayer extends Sprite
{
public function TheSimplestPlayer()
{
}
}
}