Skip to main content
Known Participant
August 1, 2011
Answered

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

  • August 1, 2011
  • 2 replies
  • 356 views

i put

MovieClip(parent).more_btn.addEventListener(MouseEvent.CLICK,clickmore); code

inside one movieclip.when i am clicking then more btn is coming but when i overing or clicking the more btn it is giving this error

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Capgem2_fla::slnDef_1/frame1()[Capgem2_fla.slnDef_1::frame1:81]

plz give some idea to solve this problem .

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

Whatever object is being targeted in line 81 does not exist when that line executes.

2 replies

Ned Murphy
Ned MurphyCorrect answer
Legend
August 1, 2011

Whatever object is being targeted in line 81 does not exist when that line executes.

relaxatraja
Inspiring
August 1, 2011

show the code