N00blet navigation Q

So I’m finally getting to the point where my sites are just one frame with everything loading dynamically via MCs and functions and whatnots.

But I’m having a problem: how does one keep track of what “page” we’re supposed to be at?

My specific dilemma:

I have an mc called “textframe”. I have a function that does some nifty dropshadow knockout effect on that frame, so I can’t display any content in it, so I thought I should use attachMovie to load different elements from the library depending on which button has been pressed. But I can’t seem to find a flexible method to track which button was pressed and pass that on to which element should be loaded.

Advice?