Button code to change scenes

Ok so I am stcuk on a basic… trying to move from scene to scene through buttons. In my code I have:

on (release) {
gotoAndPlay(“home”, 1);
}

and four other buttons relatng to the scene (or web page as it is a website). I have given the button an instance name on its scene as well.
Do I put this code on each button on each scene?
And how do I get the buttons to work - there must be somewhere that I need to put more code in?
PLease, please…I know its basic, but so hard to get past and I’m soooo tired… searching searching…
Fio

So you want a homepage (scene is called “home”) and four pages (called “one”, “two”, “three”, and “four”).
Create five buttons. Put four buttons on scene 1 (“homepage”).On the first one, give this actionscript:

on (release) {
gotoAndPlay(“one”, 1);
}

on button two:

on (release) {
gotoAndPlay(“two”, 1);
}

and so on for button three and four.

On the stage of scene “one”, place the button that was left over. Give this actionscript:

on (release) {
gotoAndPlay(“home”, 1);
}

Put this button (with this script) on the stages of scene “one”, “two”, “three”, and “four”.

Everything should work now.

I hope this helps.

Nookyalur
www.nookyalur.com

Thanks Nookyalur,
I have just tried what you suggested, and now I am wondering if the reason that it isn’t working is because I have my buttons on the homepage on different layers?
Hope your website ambitions and music go well!
Fio

If you zip your fla-files an upload it somewhere, maybe i can take a look at it…

nookyalur

Oh I finally cracked it! Was so obvious - hadn’t named the scenes according to the buttons - silly me! Thanks Nookyalur - you put me on the right path.
Fio
www.lindenlangdon.com