remove that code.
only the main timeline can have scenes. if your code is on the main timeline, use:
gotoAndPlay(framenumberorframename,scenename); // or gotoAndStop();
if it's on another timeline use:
Thanks for the response. It's not working perfectly yet. Here is the code I put in as well as the output TypeError. I still hope you can help me out.
gotoAndPlay("1", "Scene 1");
TypeError: Error #1009: Cannot access a property or method of a null object reference.
I figured it out. The scene name and frame number had to switched.
gotoAndPlay("Scene 1", "1");
mark this thread as answered, if you are still able.