Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Call to a possibly undefined method AccessibilityProperties. When Run #1065

Closed TangMonk closed 4 years ago

TangMonk commented 4 years ago

I am follwing tutorial to create a Startup.as and a Game.as:

Startup:

package  {

    import flash.display.Sprite;
    import starling.core.Starling;

    public class Startup extends Sprite
    {
        private var _starling:Starling;

        public function Startup()
        {
            _starling = new Starling(Game, stage);
            _starling.start();
        }
    }
}

Game.as:

package{

    import starling.display.Sprite;
    import starling.text.TextField;

    public class Game extends Sprite
    {
        public function Game()
        {
            var textField:TextField = new TextField(400, 300, "Welcome to Starling!");
            addChild(textField);
        }
    }

}   

When I run, the error throw:

Startup.as, Line 13, Column 29  1120: Access of undefined property Game.
Startup.as, Line 3, Column 26   1180: Call to a possibly undefined method AccessibilityProperties.

image

I have proper config the path:

image image

I am using Animate 2020

PrimaryFeather commented 4 years ago

I saw that you were already able to fix this via help fro the Starling Forum. Glad to see that!

So I'm closing this issue.

TangMonk commented 4 years ago

Thanks!