# gotoAndPlay(); fails on me :p

**URL:** https://forum.kirupa.com/t/gotoandplay-fails-on-me-p/145632
**Category:** Uncategorized
**Created:** [April 24, 2005, 10:50am UTC](https://forum.kirupa.com/t/gotoandplay-fails-on-me-p/145632 "2005-04-24T10:50:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ferdi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ferdi/32/689_2.png) [@Ferdi](https://forum.kirupa.com/u/Ferdi)
#### Post date: [April 24, 2005, 10:50am UTC](https://forum.kirupa.com/t/gotoandplay-fails-on-me-p/145632/1 "2005-04-24T10:50:41Z")

</div>

Hey all,

Somehow Flash won’t let me do a gotoAndPlay() on a child.  
In the child movieclip there is a barrel with in the first frame just a barrel and in the second frame a barrel+muzzleflash. So when I hit Key.SPACE I want the child to simply play the muzzleflash frame, how easy could that be?

I did a trace on it ( trace(this.barrel) ) and it’s valid, so why wouldn’t it do a this.barrel.gotoAndPlay(2); ??

Thanks in advance!:snug:
