minimedj / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

throw an error when the DisplayObject is not on the display list #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

some people having error like
----
TypeError: Error #1009: Cannot access a property or method of a null
object reference. 
----

because they initialize the GATracker class with a DisplayObject reference
that is not added on the display list

I proppose to throw a custom error explaining the problem

ex:
"Can not initialize GATracker because the DisplayObject is not on the
display list"

or better error message

Original issue reported on code.google.com by zwetan on 23 Dec 2008 at 3:49

GoogleCodeExporter commented 9 years ago
other error message that could work
"Can not access the stage property of the DisplayObject."

and maybe link to a wiki page that explain this error in details
"Can not access the stage property of the DisplayObject.
this page (gaforflash/wiki/nullError) explain the problem"

Original comment by zwetan on 23 Dec 2008 at 3:55