BYU LiveCode Lessons Gateway
Computers and the Humanities Program -- BYU
College of Humanities
Computers and Teaching I
LiveCode Object/Property Assignment
This exercise is designed to reinforce the topics covered in the readings and to introduce you to the concept of objects and the various properties assigned to object types in LiveCode and prepare you for the lecture on the same topic. As you do the steps, remember to observe LiveCode best practices.
- Create a new stack with four cards.
- Save the stack with YourNameObjects.rev as its filename. Note that you don't have to enter the ".rev" part; that is created automatically.
- On the first card, place a text field with your name in it.
- On the second card create three buttons of varying types. Include a field indicating the card number.
- On the third card create three graphics of varying types. Make at least one of the graphic objects not antialiased. Include a field indicating the card number.
- On the fourth card, create a field and please answer the following questions in the field. Make the field large enough to show all the text.
- What is a property (within the context of LiveCode)?
- How does one access the properties of an object?
- Name four properties common to all objects. (Note: There are more than four.)
- How does one change a specific property of an object?
This section will help familiarize you with the properties of objects. Again, remember to observe LiveCode best practices.
- Set the size of your stack to 800 pixels wide by 600 pixels tall. Make it so that the user cannot alter the size.
- Choose a background color for all the cards. Remember to use inheritance.
- Set the background color of the third card to a different color.
- Set the font and font size for all objects on each respective card as follows:
1: Verdana 18
2: Comic Sans MS 24
3: Your choice
4: Times New Roman 14
- On card 2 set the font size of the buttons only to 14 but keep the font the same.
- On card 3 set the line width, line color, and fill color of the graphic objects to each be different from the others.
- Make one of the graphics on card three 50% transparent.
- On the fourth card, in the existing field, add answers to the following questions, using a different font style (i.e., bold, italic, underline, etc.) and color than the previous answers. (Note that this can only be done via the Text menu, not in the property inspector.) If you need to, add a vertical scrollbar to the field so you can scroll to see all of the text.
- What do you think a group is (within the context of LiveCode)?
- Why might a group be useful?
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 DigHT 210 folder on the DigHT 210 server (hummac.byu.edu) as explained before.
BYU LiveCode Lessons Gateway
Maintained by Devin Asay
Copyright © 2005 Brigham Young University