# Problem with gotoAndPlay

**URL:** <https://forum.kirupa.com/t/problem-with-gotoandplay/320271>\
**Category:** flash\
**Created:** [March 18, 2011, 6:22pm UTC](https://forum.kirupa.com/t/problem-with-gotoandplay/320271 "2011-03-18T18:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carface100](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@carface100](https://forum.kirupa.com/u/carface100)\
**Post date:** [March 18, 2011, 6:22pm UTC](https://forum.kirupa.com/t/problem-with-gotoandplay/320271/1 "2011-03-18T18:22:39Z")

</div>

Im getting a ‘TypeError: Error #1009: Cannot access a property or method of a null object reference’ when I try to gotoAndPlay(15) after I swap over two mcs in my .fla file. It can start playing frame 15 fine if there is no actionscript on it ie just an image but as soon as I add actionscript code it gives me the error. I have been trying for hours to try and solve it so if anyone coud help it would be much appreciated!

I have included the.fla file and stripped most of the graphics out so it’s under 146kb limit.
