Time for Action – setting up the Keepers card
As the Keepers card is at the end of the stack, you can get to it with either repeated View/Go Next actions, or just a single View/Go Last action.
Go to the Keepers card, and create a MobGUI button for Prev, Next, and Play Media. Make a LiveCode field, and name it
mediaURL
. You should now have something looking like this:Add these lines to the
touchStart
handler of the Prev button:if the name of this card is not "Keepers" then go previous end if
Add these lines to the
touchStart
handler of the Next button:if the number of this card < the number of cards then go next end if
Add this line to the Play Media button's
touchStart
handler:showMedia field "mediaURL"
Select those four controls and Group them. Check the box that says Behave like a background. Name the group as
keeperbuttons
.Edit the script of the new group. Add this
refresh
handler:on refresh set the itemdelimiter to "." if char 1 of the last item of field...