Break ice with Variables!!
Variables in Adobe Captivate act as placeholders for data. The relevant data is associated with the variable during user input or when the output SWF is played. Adobe Capativate supports two types of variables:
- System Variables: These are pre-defined variables, which carry a Captivate movie’s information. In Adobe Captivate, system variables are classified as follows:
- MovieControl: variables for events that control the movie like pause, resume, previous, next slide, and so on.
- MovieInformation: variables related to the movie such as variables for the current slide, current frame, and so on.
- MovieMetaData: variables that provide information about the project such as project name, author, and company.
- SystemInformation: variables that can be picked up from your computer such as current date and current time.
- Quizzing: variables related to quizzing, such as the variables that capture the number of attempts and the percentage of questions answered correctly.
The exhaustive list of System variables is enumerated in this post
- User Variables: Variables that you create and to which you assign a name and value. You can use user-defined variables to store data that is used or updated many times in the Adobe Captivate project. Each variable has a unique name, and a value corresponding to the text that is stored in it. When you modify the value of a variable, the changes to the corresponding text are reflected throughout the project.
How to create user variables:
- Goto ‘Project’ menu.
- Select ‘Actions’ menu-item. The actions dialog comes up what is shown below.
So now you have created your variable. This variable is nothing but a user variable.
Information about system variables:
To know about them you just need to select “System” in the “Type” dropdown in the actions dialog:
Now that you know about User and System variables the next obvious question would be ‘what can I do with these variables?’ Well, you could do many things with these variables, which I shall explain in detail in my future posts. As of now I will tell you two basic usecases for variables:
- Show variables in a Text Caption.
- Show variables in a Drawing Toolbar Objects.
Show variable in a Text Caption:
Consider a case where-in you want to show ‘current slide of the total slide’ information in your project. For example, if your project has 10 slides and if user is on the first slide, this information would look like: 1 of 10.
- Insert a text caption.
Show variables in Drawing Toolbar objects:
- Draw a rectangle.
- Select the rectangle and press “F2”. The TextEdit toolbar comes up.
I am sure that this post would have helped you to break ice with Variables.In my upcoming posts I will tell you about Advanced Actions. Once you get a hold of Advanced Actions, then we would discuss the ‘what and how’ of variables and Advanced Actions in Adobe Captivate 4. Till then I encourage you to try a date with variables!!

Comments
I used computers a little at work, but on retiring wanted to tap into their usefulness for keeping me connected with folks and developing my interests. This post is just right.
Posted by: Printer ink cartridges | July 31, 2009 6:00 PM
I used the $$cpInfoCurrentSlide$$ variable, but if flashes the name of the variable "$$cpInfoCurrentSlide$$" with each new slide.
Any ideas? Bug?
Posted by: Russ Taber | August 7, 2009 2:12 AM
Hi Russ,
Can you provide more details of the scenario.
Posted by: Manish Anand | August 18, 2009 6:50 PM
Can you use variables to have the captivate html write info to? Want to pull user name from urlstring, use document write to put in captivate, and then pull score and name back out. Thanks for your time.
Posted by: Sarah | October 29, 2009 7:58 PM
Hi
I am trying to create an e-learning for trainee surgeons. An e-learning that they can use to read, watch and practice the skills needed to be a surgeon. But i don’t know which e-learning system to use to create a quick prototype that contains text, audio and videos.
is adobe captivate good to use, if so can you direct me to somewhere i can learn how to use it.
Posted by: Fatima | January 16, 2010 8:31 PM
Hi Fatima,
Check out the following links:
http://blogs.adobe.com/captivate/2009/04/captivate_4_tutorials.html
http://blogs.adobe.com/captivate/2009/04/captivate_4_tutorials.html
hope this helps..
Manish
Posted by: Manish Anand | January 18, 2010 12:10 PM