Flash 8 ActionScript version 2.0. Button redirecting

So im building this flash website for college. It was ment to be in HTML, but i thought i would be a little different and try something in Flash.
Although the action scrpit is getting me down. (i use C++ as my main code language, so this is all kind of new to me!)

I am aiming to click the buttons to take you through parts of the site and load it in one set graphic window. Changing the text each time a different button is pressed.

I can work out part of my code which is:

**onPress = function () {
gotoAndPlay(“SceneX”, 1);
};

**But this brings up one nasty error that says:

**must appear within on handler
**I have browsed through the AS help file, but cant make much of it.
some help on this small fix would be very nice :wink: Thanks

onPress must appear with movieclip instance name you are want to tell what to do on press

like mc_open you write

mc_open.onPress

I’m guessing that you have the ActionScript on the button itself, so use this:

on (press) {
	gotoAndPlay("SceneX", 1);
}

Except: http://www.senocular.com/flash/tutorials/faq/#gotoscene :slight_smile: