动作脚本3错误1009

时间:2014-11-13 05:46:37

标签: actionscript-3 flash adobe

package 
{
    import flash.display.MovieClip;
    public class DocumentClass extends MovieClip 
    {
        public var playScreen:AvoiderGame;

        public function DocumentClass() 
        {
            playScreen = new AvoiderGame();
            addChild( playScreen );
        }
    }
}

获取此信息:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at AvoiderGame()
    at DocumentClass()

0 个答案:

没有答案