1007 : A super statement can be used only inside class instance constructors.


Description of Error

A 1007 error means that you tried to call the super() method anywhere other than in your constructor.

Adobe’s Official Writeup

You cannot use the super statement within static members. You can use the super statement only within class instances.
(Adobe Error Reference)

Cause of the Error

Somewhere you have the method super() called, and it’s not in the constructor. Remember, the constructor is the main function in your class – it has the same name as your class and file, and it’s the only place you can call super().

Solutions to the Error

Delete your super() call – it’s not doing you any good outside of the constructor anyway!

Other Articles About This Error

If you’ve read a useful writeup of this issue elsewhere on the internet, leave a comment and I’ll add it to this list.

  1. No comments yet.

You must be logged in to post a comment.

  1. No trackbacks yet.