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”);
}
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).
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?