# On (press) won't gotoAndPlay in other MC

**URL:** <https://forum.kirupa.com/t/on-press-wont-gotoandplay-in-other-mc/201695>\
**Category:** Uncategorized\
**Created:** [September 24, 2006, 2:54am UTC](https://forum.kirupa.com/t/on-press-wont-gotoandplay-in-other-mc/201695 "2006-09-24T02:54:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![funfunfun](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@funfunfun](https://forum.kirupa.com/u/funfunfun)\
**Post date:** [September 24, 2006, 2:54am UTC](https://forum.kirupa.com/t/on-press-wont-gotoandplay-in-other-mc/201695/1 "2006-09-24T02:54:34Z")

</div>

I have a command inside an onpress, that doesn’t do what it’s supposed to.  
It is written like this:  
Code:  
[LEFT]on (press) { \_root.window.gotoAndPlay(10); \_root.imageOne.imageTween.gotoAndPlay(2);}[/LEFT]

The above actionscript is on a button, and that button is located at:  
\_root.messageOne.messageGraphic

The imageTween frame 2 is the beginning of a tween that scales that movie clip, but it just sits there and doesn’t scale. So the on (press) isn’t working for some reason. Any ideas?
