Making button change scene instead of file...?

i was using this tutorial http://www.kirupa.com/developer/mx/full_site2.asp
to create a site and i was wondering if it would be better to change between scenes instead of files, because in the tutorial above, it only teaches how to change between files. The AS it uses in that is

on (release) {
_root.contents.loadMovie (“whateverhere.swf”);
}

but what would it be for changing scenes? thx

For using scenes, you button will have to be on the main timeline with this code…

on (release){
gotoAndPlay("SceneName",1);
}

It is highly recommend you use loadMovie like the tutorial says, because with loadMovie, all unviewed content stays unviewed and unloaded, where if you use scenes you have to load everything at once, giving your full site a high file size and long load time (especially for dial ups).

if it is loadMovie will it take longer to change from pages? if it won’t then i guess that’d be a better idea…

Depends on the sections.

I recommend using a preloader on each section, that way dial up users don’t see empty space until that area loads.

ah ok thx,
i jsut tried the AS you gave me above but some reason when i click publish>html, scene 1 and scene 2 keep switching.
So like for half a second it stay on scene 1 then changes to scnee 2 then back to scene 1 etc.
Do you know why this is happening?

You never added a stop() action to the last frame in the scene so it is looping over and over.

cool it works thx for the help

No problem.