Disable buttons on page-flip

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.

my buttons are called:

vertical_presses

straightline

who has the AS and where do i put it?

Thanks