Index ButtonsFields Message Variables
Ask/Answer Graphics Sound Menus QuickTime

Hiding and Showing Fields

Create a new project and create 3 new fields in the background, or add two more background fields to your existing project. Type names in each of the fields.



Now do some scripting using the Message Box (Command M shows and hide the Message Box).

Type hide background field 1 or hide field 1 or hide fld 1 in the Message Box and press Return.

Try it again with hide fld 2 and hide fld 3

Now type show fld 3 and show fld 2

Each line you typed in the Message Box is a script. You could do a lot of scripting from the Message Box but you would have to retype the script each time you wanted to use it, and you are limited to single line scripts.



Scripts can also be put into cards, stacks, backgrounds, fields and of course buttons. Make a button called show fld and double click on it to write a script.

Between the on mouseUp and end mouseUp type show fld 1.



Then press OK and try out the new button



You can change the script in the button or make more buttons.

Using hide fld and show fld you can hide and show any number of fields.

If they are card fields you need to use hide card field... or show cd fld....

By using a list you can hide or show a number of fields with one button. Change the script of your button to read

A more efficient script would use a repeat loop to do the same task


Similarly you can write a script that shows many fields. Besides fields you can hide and show card and background pictures and card and background buttons.

By using a repeat loop like this you can change the number of fields without having to change the script

Return to top of page