Let’s Get Started: Initializing Your Presentation
Up to this point, the user could go to any slide and not worry how it looked
or even what was in any of the
variables ex cept pos sibly
userName
. As our pre -
sentations get more complicated, we will need to keep track of many dif ferent
things. It will be important that everything in the pre sentation
starts out how you
want it. You don’t want the user to go to a slide that has a star before choosing
the right an swer that is supposed to show the star. If you’re keep ing score, you
want to be sure that the score starts at 0.
These kinds of things should be set up at the be ginning of the pre sentation.
One of the best ways to do this is with a but ton on the ti tle slide. If it is the only
button on that slide and you are in Kiosk mode, you
know the user has to click
that button to con tinue. All that the user might see is that the button goes to the
next slide or asks for a name, but be hind the scenes,
your procedure is cleaning
up ev erything (making the beds, dusting the furniture, setting up variables, hid -
ing the toys and stars—all the things that you do before company comes).
In the hide and show ex ample
from the pre vious section, the one thing we
want to do is hide our star. We will use a pro cedure called
Do'stlaringiz bilan baham: