# What doesn't this script work?

**URL:** https://forum.kirupa.com/t/what-doesnt-this-script-work/175384
**Category:** flash
**Created:** [January 13, 2006, 8:30pm UTC](https://forum.kirupa.com/t/what-doesnt-this-script-work/175384 "2006-01-13T20:30:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)
#### Post date: [January 13, 2006, 8:30pm UTC](https://forum.kirupa.com/t/what-doesnt-this-script-work/175384/1 "2006-01-13T20:30:19Z")

</div>

I’ve got a button on the main screen that will nav an mc. The actions layer contains the following code:

//Set vars for specific frames in the xyz mc  
var tsdOpeningFrame = 11  
var powerUpFrame = 159  
var turnAroundFrame = 302  
var rotate360Frame = 648

if (this.powerUp\_btn.onPress == true) {  
gotoAndPlay (“this.xyz\_mc”, powerUpFrame)  
}

But nothing happens…why?

Thanks.
