Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 762
James Kirkby Avatar asked Mar 29 '12 15:03

James Kirkby


1 Answers

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
       ^
like image 74
taskinoor Avatar answered Nov 15 '22 08:11

taskinoor