Skip to main content
Mr. Baker the Shoe Maker
Inspiring
April 13, 2013
Answered

TypeError: Error #1009: How do I find the exact line of the error?

  • April 13, 2013
  • 4 replies
  • 898 views

I got the following error when testing a project:

[SWF] ProjectZ_iOS.swf - 12154544 bytes after decompression

TypeError: Error #1009: Cannot access a property or method of a null object reference.

                at ProjectZ_iOS_fla::MainTimeline/goButtons()[ProjectZ_iOS_fla.MainTimeline::frame71:54]

I'm not sure how to read this as there is no "frame 71." Also, what does this mean, "MainTimeline::frame71:54"?  

This topic has been closed for replies.
Correct answer Ned Murphy

Since no one has mentioned it yet, the line number is 54.  Frame 71, line 54.

4 replies

Mr. Baker the Shoe Maker
Inspiring
April 16, 2013

Thanks all for your answers. My first scene was 70 frames long and my main was 1 frame or the 71st frame. I did not account for the previous 70 frames. So now I discovered the issue but I will start a new discussion.

Ned Murphy
Ned MurphyCorrect answer
Brainiac
April 13, 2013

Since no one has mentioned it yet, the line number is 54.  Frame 71, line 54.

Inspiring
April 13, 2013

No matter the frame number, the error comes from inside the method goButtons() (how many of these do you have?). Inside that method only objects that can have a value of null can potentially be the target of this error. That's how you can find the origin of the error.

kglad
Community Expert
April 13, 2013

flash is detecting code on frame 71 of your main timeline in ProjectZ_iOS.fla.

if you have scenes, the timeline in each scene is laid end-to-end and the frames are numbered sequentially.  so, while you may not think you have a frame 71, flash does.