Skip to main content
alexr58234163
Known Participant
July 16, 2024
Answered

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

  • July 16, 2024
  • 1 reply
  • 312 views

I have coding that is supposed to make visible=false some borders.. inside of some of movieclip on the stage.  The movieclip on the stage has two frames, frame 1 with some stuff on it, frame 2 with some more stuff. The coding on the main stage succesfully visible=false the stuff on the first frame of the MC on the stage. But TypeError: Error #1009: Cannot access a property or method of a null object reference when I try to .visible=false the stuff on the second frame of the MC on the stage. See the video.

 

https://youtu.be/7PFp-1SP-i8

 

How can I visible=false the borders on the second frame of the MC?

    This topic has been closed for replies.
    Correct answer kglad

    click file > publish settings and tick "permit debugging".

     

    copy and paste here the few lines surrounding the line of code with the error.

    1 reply

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    July 16, 2024

    click file > publish settings and tick "permit debugging".

     

    copy and paste here the few lines surrounding the line of code with the error.

    alexr58234163
    Known Participant
    July 16, 2024

    I thank you for replying, but rather than waiting for an explanation, i chose not to do the path that required me to ask this question

    kglad
    Community Expert
    Community Expert
    July 17, 2024

    you're welcome.