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.
Create a new card and name it
Traveler
.Drag a Rectangle Button onto the card and make the following customizations using the properties inspector:
Set the width to
82
and the height to23
.Set the location to
49
,17
.Set the name of the button to
Back
.Set the label of the button to
Back
.Set the background color to blue.
Set the foreground color to white.
Set the text size to 12.
Add the following script to the Back button:
on mouseUp go to card "Main" end mouseUp
Drag a Label field onto the card Traveler and make the following customizations using the properties inspector:
Set the width to
378
and the height to21
.Set the location to
283
,18
.Set the name of the field to
Instructions
.Set the text size to 14.
Embolden and center the text.
Change...