Humanities Home page   Office of Digital Humanities
Back     BYU LiveCode Lessons Gateway

Computers and the Humanities Program -- BYU College of Humanities

CHum 210
Computers and Teaching I

Scripts Exercise

This exercise is designed to help reinforce some the scripting methods and concepts introduced in class. You need to modify a template stack created for you to operate as outlined below. As you do the steps, remember to observe LiveCode best practices.

  1. Make a COPY of the stack ScriptEx.rev in the Templates folder on the server and change its name to YourName-Scripts and give it the title I Love Scripting!
  2. Make the "Date" button put the current date into the "Note" field. (Hint: If you don't know the command yet, try something obvious like 'put the date into field "note"')
  3. Make the clock button put the current time into the "Note" field when clicked. (Note: Ignore the time indicated on the clock image; it's just an image used as a button icon.)
  4. Make the "On/Off" buttons enable/disable respectively both the clock button and the time zone button.
  5. Make the "Panic" button put an appropriate phrase in the "Note" field.
  6. Make the lightbulb button (upper right corner) beep.
  7. Make the help button (upper right corner) show the "Help" field (it was included with the stack). Have it wait for a click of the mouse and then hide the field.
    Note: Help fields are usually located in front of all objects to make them readable (hint, hint).
  8. Make the "Order" button go to the next card (to see the hamburger), wait three seconds, then return, all with appropriate visual effects.
  9. Make the arrow buttons at the bottom appear appropriately on all three cards (i.e., they don't all appear on every card). Script them to behave appropriately with appropriate visual effects of your choosing.
  10. Change the field in the corner with your name to reflect the nature of the exercise. Have this field appear on every card.
  11. Save the stack with YourName-Scripts.rev as the filename.

This assignment is due by the beginning of class on the due date specified in the class schedule. Turn in your completed assignment by dragging a copy of the stack from your data disk into the Assignment Drop folder in the CHum 210 folder on the CHum 210 server (hummac.byu.edu) as explained before.

IMPORTANT: If you have not started to create your walking tour stack, now is the time. You now have all the knowledge and tools necessary to not only create the actual stack, but to make it function properly as well.

Scripts Lecture Notes


Back     BYU LiveCode Lessons Gateway
Maintained by Devin Asay.
Copyright © 2005 Brigham Young University