Goto Help

I need some basic help…just started using Flash…so I have the following code as an actionscript attached to a button that has a slider like the one in the tutorials…problem is how do I make the onPress goto a different frame in my scene??

button_1.onPress = [color=red]function()[/color] {
xMove = button_1._y;
};

Any help would be appreciated.

THX

Hi

Here is the script:

button1.onPress = function() {
xMove = button_1._y;
gotoAndPlay(“Scene2”, 1); // instead of 1 u can also specify label name
//gotoAndPlay(“Scene2”, “labelName”);
};


aShIsH

Thanks…I will try that.