Buttons on Pages
You can only use buttons in Flash pages (SWFs). For image pages use the hotspot facility.
Let's assume you have a Flash page with a button on it. The button needs to be disabled when the page is invisible and enabled when it is visible.
Assuming your button instance is called MyBtn the following ActionScript should be added to frame 1 of your page.
function Signal(msg:String)
{
switch (msg)
{
case "onInvisible": MyBtn._enabled=false; break;
case "onVisible": MyBtn._enabled=true;break;
}
}