Search code examples
actionscript-3flashactionflash-cs5

1024 overriding a function that is not marked for override


I keep getting this error in a Flash instrument I'm making:

1024 overriding a function that is not marked for override

The error was found in this line:

public function stop():void

Solution

  • The error indicates that you have a method named stop in base class. So in derived class you need to add override in the method declaration.

    public override function stop():void
           ^