Reputation: 1834
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
Upvotes: 6
Views: 6744
Reputation: 6349
You cannot use the function name stop in a class that extends MovieClip.
Upvotes: 3
Reputation: 46027
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
^
Upvotes: 15