Skip to main content
alexr58234163
Known Participant
Jul 16, 2024 1:14 AM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
    kglad
    kgladCorrect answer
    Community Expert
    Jul 16, 2024 8:48 PM UTC

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

     

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

    3 replies

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    Jul 16, 2024 8:48 PM UTC

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

     

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

    Translate
    alexr58234163
    Known Participant
    Jul 16, 2024 11:48 PM UTC

    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

    Translate
    kglad
    Community Expert
    Community Expert
    Jul 17, 2024 1:24 PM UTC

    you're welcome.

    Translate