O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

  1. 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:
    Time for Action – setting up the Keepers card
  2. 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
  3. 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
  4. Add this line to the Play Media ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required