questo codice che ho trovato potrebbe forse risolvere il problema, in particolare la parte che ho evidenziato in blu, però non ho le capacità per analizzarlo da solo:
// By default all buttons are enabled
// //////////////////////////////////////////////////
// Define event handlers for button
// / Button 1
button1_btn.onRelease = function() {
turnFlipOn();
trace("button 1..");
};
button1_btn.onRollOver = function() {
turnFlipOff();
};
button1_btn.onRollOut = function() {
turnFlipOn();
};
// / Button 2
button2_btn.onRelease = function() {
turnFlipOn();
trace("button 2..");
};
button2_btn.onRollOver = function() {
turnFlipOff();
};
button2_btn.onRollOut = function() {
turnFlipOn();
};
// / Button 3
button1_btn.onRelease = function() {
turnFlipOn();
trace("button 3..");
};
button3_btn.onRollOver = function() {
turnFlipOff();
};
button3_btn.onRollOut = function() {
turnFlipOn();
};
// / Button 4
button4_btn.onRelease = function() {
turnFlipOn();
trace("button 4..");
};
button4_btn.onRollOver = function() {
turnFlipOff();
};
button4_btn.onRollOut = function() {
turnFlipOn();
};
// ////////////////////////////////////////////////////
// Additional functions
// On page load /initialize
function onInit() {
// Save current autoFlip value in order to restore it later
autoFlip = book.autoFlipProp;
// If page is not visible for user
if (!visible) {
disableButtons();
}
}
// User has moved to some other page
function onClose() {
disableButtons();
}
// User has moved to this page
function onOpen() {
enableButtons();
}
function turnFlipOff() {
book.autoFlipProp = 0;
book.flipOnClickProp = false;
}
function turnFlipOn() {
book.autoFlipProp = autoFlip;
book.flipOnClickProp = true;
}
function enableButtons() {
button1_btn.enabled = true;
button2_btn.enabled = true;
button3_btn.enabled = true;
button4_btn.enabled = true;
}
function disableButtons() {
button1_btn.enabled = false;
button2_btn.enabled = false;
button3_btn.enabled = false;
button4_btn.enabled = false;
}

Rispondi quotando