Page-flip buttons

I’m working to customize the application from page-flip.com. I need to add buttons that are enabled when the page is opened and disabled when the next page is “flipped” open.

an example of two of my buttons are called:

button 1 name: learn_more_vertical
button 1 instance name: vertical_presses (located in the “page3-wide” mc)

button 2 name: learn_more_straightline
button 2 instance name: straightline (located in the “page4-wide” mc)

My current mc (with button in) code is:

function onInit() {
if (!isLeftPage) {
_x = -width;
}
}

My current root frame code is:

var widePages = new Array();
myBook.onInit = function() {
var book = this;
var n = book.totalPages;
for (var i = 0; i<n; i++) {
var page = book.getPageLink(i);
if (page.params.wide != undefined) {
var lp = rp=i;
var isOtherWide = false;
if (page.isLeftPage) {
rp = i+1;
isOtherWide = (book.getPageLink(i+1).params.wide != undefined);
} else {
lp = i-1;
isOtherWide = (book.getPageLink(i-1).params.wide != undefined);
}
if (isOtherWide) {
widePages[lp+"_"+rp] = {leftPage:lp, rightPage:rp, checked:false};
}
}
}
};
function isPageWide(pageNumber) {
var res = false;
for (var layout in widePages) {
if (widePages[layout].leftPage == pageNumber || widePages[layout].rightPage == pageNumber) {
res = true;
}
}
return res;
}
function getIndex(pageNumber) {
for (var layout in widePages) {
if (pageNumber == widePages[layout].leftPage || pageNumber == widePages[layout].rightPage) {
return layout;
}
}
return undefined;
}
myBook.onPageLoad = function(pageURL, pageNumber) {
if (isPageWide(pageNumber) && !_root.onEnterFrame) {
_root.onEnterFrame = checkWidePages;
}
};
myBook.onPageUnload = function(pageNumber) {
if (isPageWide(pageNumber)) {
widePages[getIndex(pageNumber)].checked = false;
}
};
myBook.onPageLoad = function(pageURL, pageNumber) {
if (pageNumber == 0) {
this.flipCorner(“bottom-right”);
}
};
delay = 10000;
// 1 second: 1000 ms
forwardInterval = setInterval(myBook, “flipForward”, 10000);
myBook.onLastPage = function() {
clearInterval(forwardInterval);
lastPageInterval = setInterval(closeLastPage, delay);
};
function closeLastPage() {
myBook.flipGotoPage(0);
clearInterval(lastPageInterval);
forwardInterval = setInterval(myBook, “flipForward”, 10000);
}

I am working in Flash MX.

Thanks, any help is really appreciated.