1024 overriding a function that is not marked for overriding

I keep getting this error in the Flash tool that I am doing:

1024 overriding a function that is not marked for overriding

An error was found in this line:

public function stop():void 
+6
source share
2 answers

The error indicates that you have a method called stop in the base class. Therefore, in a derived class, you need to add override to the method declaration.

 public override function stop():void ^ 
+15
source

You cannot use the name of a stop function in a class that extends MovieClip.

+3
source

Source: https://habr.com/ru/post/911955/


All Articles