# gotoAndPlay Problem plz help!

**URL:** <https://forum.kirupa.com/t/gotoandplay-problem-plz-help/133502>\
**Category:** Uncategorized\
**Created:** [January 9, 2005, 7:00am UTC](https://forum.kirupa.com/t/gotoandplay-problem-plz-help/133502 "2005-01-09T07:00:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bluebomber357](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@Bluebomber357](https://forum.kirupa.com/u/Bluebomber357)\
**Post date:** [January 9, 2005, 7:00am UTC](https://forum.kirupa.com/t/gotoandplay-problem-plz-help/133502/1 "2005-01-09T07:00:57Z")

</div>

I am animating a movie clip and I am having a specific problem with actionscript. I am animating a monkey. The path to what I want to animate is through “monkey” -\> “lr”. So I write \_root.monkey.lr.play(); in order to play an animation. This animates the right leg, hence lr, leg right. Now when I try to animate the right leg a different motion on different frames, I go through the same path with the same line, \_root.monkey.lr.play();, but I can’t tell it to goto the frame, 11, where the new motion begins. I can’t use a gotoAndPlay(); because the animation is triggered by an if statement within a OnClipEvent(enterFrame), which would cause it to get stuck on one frame if I use a gotoAndPlay();, does anybody know what I can do? I tried playing around with variables and stuff for hours! But I can’t figure out how to get this to work, can anybody help?
