Book Image

LiveCode Mobile Development HOTSHOT

By : Dr. Edward Lavieri
Book Image

LiveCode Mobile Development HOTSHOT

By: Dr. Edward Lavieri

Overview of this book

<p>There are over 2,000 programming languages and several that can be used to program mobile applications. LiveCode has proven itself a strong competitor in the mobile application development market. The power of this easy-to-learn programming environment will get you starting developing mobile apps from the very first chapter.</p> <p>"LiveCode Mobile Development Hotshot is a project-based guide to developing games and other apps for mobile devices using LiveCode. You will learn tricks and techniques for tackling even the most difficult mobile application topics. Best of all, you will be provided with 100% of the source code and have it explained too.</p> <p>"LiveCode Mobile Development Hotshot" will present you with ten exciting projects that will expose you to different LiveCode programming techniques for mobile application development. The hands-on approach provides you with clear, step-by-step instructions in each chapter where a different type of mobile app is tackled. You will enhance your current knowledge of this programming language and build upon it by learning specific techniques and programming approaches to developing mobile applications. You will create your own calculator app, learn how to use menus for mobile apps, and design user interfaces that are optimized for mobile users. In the following projects, you will create a quiz game and learn how to use LiveCode to develop an entire game on one card. Other projects will look at using randomization and animation, as well as database control. Among the advanced features, you will learn about gathering information about a user's device, how to create contextually aware objects, how to transfer scripts, how to use custom properties, how you can analyze and manipulate text, and how to use arrays.</p> <p>"LiveCode Mobile Development Hotshot" is a complete solution for people that are familiar with LiveCode and want to start developing mobile apps.</p>
Table of Contents (18 chapters)
LiveCode Mobile Development HOTSHOT
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Mobile App Development Primer
Index

Programming the Traveler option


For this task, we will create an interface that permits the user to drag-and-drop an object over one of three geographic areas. We will add code so that the system can tell us where the user dropped the object.

Engage Thrusters

  1. Create a new card and name it Traveler.

  2. Drag a Rectangle Button onto the card and make the following customizations using the properties inspector:

    1. Set the width to 82 and the height to 23.

    2. Set the location to 49, 17.

    3. Set the name of the button to Back.

    4. Set the label of the button to Back.

    5. Set the background color to blue.

    6. Set the foreground color to white.

    7. Set the text size to 12.

    8. Add the following script to the Back button:

      	on mouseUp
      	   go to card "Main"
      	end mouseUp
  3. Drag a Label field onto the card Traveler and make the following customizations using the properties inspector:

    1. Set the width to 378 and the height to 21.

    2. Set the location to 283, 18.

    3. Set the name of the field to Instructions.

    4. Set the text size to 14.

    5. Embolden and center the text.

    6. Change...