The latest version of Adobe Captivate allows for much more flexibility than prior versions. Part of this new capability involves the use of advanced actions and variables. This tip will show you how to set up a new user variable and assign it. There is a link at the end of the text to a Captivate movie that will walk you through all the steps.
A variable is simply a repository for data you want to remember. Let’s say that we will determine how well the learner does by comparing the number of questions answered correctly to the total number of questions. It would be convenient to store the number of questions in a variable at the start of our Captivate lesson so that if we ever need add or remove questions from our file, we need to change this information only once in our file.
Creating our user variable
We start by choosing Project → Actions to open the Actions Dialog. (See Figure 1.)
Figure 1 The Actions Dialog
The first tab is Variables. Choose User from the Type dropdown list and click the Add New button. Once you’ve done that, type the new variable name in the Name field. Let’s call it NumQuestions. Once you’ve typed the name, the Add New button becomes Save. Click it and now you can use the variable.
Assigning a value to our user variable
Now that you’ve created your variables, let’s assign our NumQuestions variable to the number of questions in our file.
On our first slide, we choose Properties and then change what happens on Slide Enter. (See Figure 2.)
Figure 2 The Slide Properties dialogue
As you can see, we chose Assign from the On slide enter drop down menu and then chose our NumQuestions example from the Assign drop down. Finally, we typed the value we wish to have NumQuestions hold in the with field, 3.
We can now use NumQuestions whenever we want to create an action that needs to determine what to do next based at least in part with how many questions are in our file. This is an age-old technique for making your file much easier to maintain because if there are several places in your file where you need to remember this information, you need only change one place in your file (the dialog above) when you need to modify the number of questions in your file.
The Captivate movie will walk you through all the steps above.