Guess what my favorite ActionScript error is?

Why, it's good old Error #1009!

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Information/setup()
at Interface/setup()
at Document/::setup()
at Document$iinit()

All it would take to make this okay is the name of the null object. It's obviously been declared, but not instantiated. I can't imagine that Adobe was just too lazy to toss the name in there, since, for the most part, the errors provided are very helpful.

I will admit that I'm a bit of a novice with error handling. Is there a way to make this situation better? Leave a comment.

Leave a Reply