James Kirkby
James Kirkby

Reputation: 1834

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

Upvotes: 6

Views: 6744

Answers (2)

francis
francis

Reputation: 6349

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

Upvotes: 3

taskinoor
taskinoor

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

Related Questions