Friday, July 17, 2009

curtismorley.com � Flash Error #1180: Call to a possibly undefined method myCustomClass.

Flash Error #1180: Call to a possibly undefined method myCustomClass

Make sure that when you instantiate the Object that you are using the Class name and not the variable name.

Bad Code:

var myCustomClass:CustomClass = new myCustomClass();

Good Code:

var myCustomClass:CustomClass = new CustomClass();

No comments:

Post a Comment