Skip to main content
Known Participant
October 4, 2008
Question

null object reference?

  • October 4, 2008
  • 9 replies
  • 787 views
What could this error message posiibly mean?:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MasterPage_fla::MainTimeline/MasterPage_fla::frame1()
This topic has been closed for replies.

9 replies

kglad
Community Expert
Community Expert
October 8, 2008
you're welcome.
Known Participant
October 8, 2008
Thanks guys, I finally narrowed it down and solved the problem. I'm a little new to this and I did not know about commenting.
kglad
Community Expert
Community Expert
October 5, 2008
and start with line 16. which line of code is 16?
October 5, 2008
Start commenting things out until the error goes away.
Known Participant
October 5, 2008
The spelling/punctuation seems to be correct. I just can't imagine what this could be.
kglad
Community Expert
Community Expert
October 5, 2008
check the spelling/caps on leadership_btn if that's line 16.
Known Participant
October 5, 2008
I checked "permit debugging". The only addition I got was:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MasterPage_fla::MainTimeline/MasterPage_fla::frame1()[MasterPage_fla.MainTimeline::frame1:16]
October 4, 2008
Open Publish Settings, check "Allow debugging" -- this will give you a line number on where an error occurs, which is invaluable for these type of vague errors.

Cannot access a property or method of a null object reference means something like this:

var obj = null;
trace(obj.prop); // error, because obj is null so you can't access "prop"
kglad
Community Expert
Community Expert
October 4, 2008
it means you're referencing something that flash can't resolve into an object.