what I used to do before the Hybrid board was put all my 'loader' buttons on one layer that extended out through the whole timeline, then have each page be its own frame
if you do it that way you have to:
1. put a stop(); action in frame 1 so the SWF doesn't just keep looping through all frames
2. have code on all your loader buttons that lead your timeline to the right place when pressed:
on(press) {
gotoAndStop(somepagenumber);
}
3. make some way of getting back to frame one on all your other frames
for step2 it might be easier to turn all your buttons into movieclips, name them whatever you want the name of your pages to be, give the corresponding frames the same frame label as the name of the loader button, and then put this code in frame 1:
var loaderButtons:Array = Array(SomePageName,AnotherPageName,YetAnother);
for (i in loaderButtons) {
mcLB = loaderButtons[i];
mcLB.onPress = function() {
gotoAndStop(this._name);
}
}
doing it that way, you don't have to have code on every loader button - just make sure you give your frames frame labels that are identical to the instance names of all the loader buttons on stage
one last thing, because any code you have on frame 1 will 'refire' every time you return your timeline to frame 1, you can use a variable to determine whether any code fires like put this code at the very bottom of frame 1 - beneath all other code:
if (boardInitialized) {
boardinitialized = false;
}
and then in any functions you have in frame one above it you can do use:
if (boardInitialized) {
//run some code
}
that way the code on frame 1 will only run once like it's supposed to -- another way to do the same thing would be to have all your code on frame 1, but have your soundboard actually start on frame 2 -- have the stop(); action be on frame 2, not frame 1 -- and have all your methods of returning to the 'home' frame point to frame 2, not frame 1 where your code is
EDIT: check out the attached FLA file