Need Help With Error #1009
Hello, I am working on a simple Flash game where you navigate through different rooms. Each room is set in a frame on the main timeline. I am getting an Error #1009 message when I navigate to certain rooms, but each frame pretty much has the same code so I'm not sure why some frames are encountering this issue while others are fine. When the error message appears I am still directed to the "room" I clicked on, but all of the buttons in that room disappear and you are then stuck there and have to restart the project. I looked through other forums where people had this similar error message but I couldn't find a solution that would help me, so I apologize for posting such a common problem! Here is a screenshot of the error message I receive, which says:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at project1_fla::MainTimeline/frame4()[project1_fla.MainTimeline::frame4:43]
at flash.display::MovieClip/gotoAndStop()
at project1_fla::MainTimeline/enterElevator3()[project1_fla.MainTimeline::frame12:25]

Here are links to screenshots of the debug session where it points to the lines of code that contain the error and also screenshots of my code in those frames:
Frame 4 is labelled as "elevator" and frame 12 is "medEntrance". I know the problem is jumping from frame to frame, but I honestly have no idea what the error would be. I double checked all of my code and it should all be correct, and what makes it even more confusing is that some rooms work perfectly while others have this problem and they all use this exact code but with different MC names! 😕😕 Something I did notice is that rooms that are more frequently linked to (for example the elevator can link to three different "floors" or frames) are the ones that encounter this issue. But I just chose this pair in particular since it contains the least amount of code
I don't understand why having several frames linking to one frame in particular would be a problem, but this is my first time using Flash and AS3 so I'm not familiar at all with its limitations.
Sorry for the messy code and information overload! I figured it's better to provide too much information than too little
and thank you for your help, it is much appreciated!