1180: Call to a possibly undefined method assignListeners.

The Situation

Writing a class and needed to assign a series of EventListeners to an object.

WTF!?

The error is telling you the the method your referencing may not exist.

The Fix

Being a complete tool, I invoked the function without having actually created it in my class. Apparently I was using the Agile approach … I was able to solve the issue by actually writing the method assignListeners() in my class.

This error is commonly seen with Error 1046 when you forget to import a class package.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *