O'Reilly logo

LiveCode Mobile Development Beginner's Guide - Second Edition by Joel Gerdeen, 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

  1. Go to the Keepers card and create a MobGUI button for Prev, Next, and Play Media. Make a MobGUI Multiline field and name it mediaURL. Be sure to uncheck the Auto delete option, so that it keeps the URL data when we change cards. Also uncheck the Editable option. You should now have something looking like the following screenshot:
    Time for action – setting up the Keepers card
  2. Add these lines to the mouseUp handler of the Prev button:
      if the number of this card is > 5 then
        go previous
      end if
  3. Add these lines to the mouseUp handler of the Next button. Note that - 1 is used since the last card is the MobGUI card:
     if the number of this card < the number ...

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