Get access to premium assets for free. Be the first to hear from Adobe.

Variables: Simple Usage



One of the new features added in Adobe Captivate 4 was Variables and Scripting. In this blog post we will try to understand some simple usages of Variables. In later posts we can deal will the scripting portion.

OK. Let’s start off with the simple question – What is a variable in Adobe Captivate? Well, it is a placeholder for data. This data portion generally varies but may be constant in some cases. Example of a constant variable (nice oxymoron :-)) is author name. While an example of a varying variable (the normal case) is slide number.

In Adobe Captivate 4, there are two types of variables:

  • System Variables.
  • User-Defined Variables.

System variables are pre-defined variables. Generally these are read only, e.g., time-of-day (But you can also change them using scripting). User-defined variables can be created and updated by users. For current discussion, we will only consider system variables.

Adobe Captivate 4 groups system variables into the following groups:

  • MovieControl – These are variables which control playback of Adobe Captivate generated SWF movie. User can use these to pause/resume movie, go-to-next slide, go-to-previous slide, etc.
  • MovieInformation – These are variables which list information about an Adobe Captivate generated SWF movie. E.g. variables for current slide number, current frame number, etc.
  • SystemInformation – These are variables which are picked from the user’s computer. E.g. current date, current time, etc.
  • MovieMetaData – These variables provide information about project namely, project name, author name, company name, etc.
  • Quizzing – These are variables which contain quizzing related information. E.g. number of attempts, percentage of questions answered correctly, etc.

Good news is that, you don’t need to remember these. You can browse through the variables and their description using Actions Dialog. Actions dialog can be accessed through the project menu (Project->Actions…). Here’s a little SWF about Actions Dialog. It shows how to select the various variables and get a little description of each.

Variables can be used to do a multitude of things like:

  1. Showing dynamic text in captions.
  2. Accepting user input and storing it in a movie.
  3. Advanced branching depending upon variable values.
  4. Getting quiz data, etc.

This post deals only with “Showing dynamic text in captions”.

Let’s try to put variables to use. We have all seen footers in Microsoft Word and other applications. Let us try to create footers for each slide in Adobe Captivate.

Suppose the Adobe Captivate project contains 3 slides. In the published SWF, footer on the first slide should read: Slide 1 of 3, footer for second slide should read: Slide 2 of 3, and so on.

So, in order to create footers of this type we need two pieces of information:

  • Current slide.
  • Number of slides in the SWF.

These are provided to us by two system variables.

  • Current Slide – cpInfoCurrentSlide
  • Number of Slides in SWF – rdinfoSlideCount

Both these variables are in category MovieInformation. In order to use these variables, we need to create a text caption and add the variables to it. The text caption string will contain the following string: Slide $$cpInfoCurrentSlide$$ of $$rdinfoSlideCount$$. This SWF demonstrates how to do that.


Now, that we have created the footer text caption, we need to do the following:

  • Move this text caption to a suitable location in slide (bottom-left or whatever is “suitable” for you).
  • Change the duration of text caption to “rest of project” using the following steps:
    1. Right Click on Text Caption.
    2. Context menu opens up.
    3. Select Properties… menu item.
    4. In text caption properties dialog select “Options” tab.
    5. Go to “Display for” in “Timing” group box.
    6. Change the combo box item from “specific time” to “rest of project”.

That’s it. Were done!!! Publish the Adobe Captivate project to a SWF and see the footer in action. Here’s an example SWF.


Here’s the Adobe Captivate project for the above SWF.

 That’s all for this post. Your comments are most welcome. Next time, we will try to add a little “action twist” to this footer!!! 🙂 Till then, Adios.


4 Responses

  1. You seem to have a forward button at the beginning which only appears the first time ? Eg if i rewind the course to the first slide it doesnt appear.I thought this was just a button on frame 1 which you click on to continue but it seems to be something to do with the loading ? As when i rewind its not there ?

  2. Hi Paul,Are you talking about the green button? In that case, this is not a normal button on a slide. This just a button to prevent auto play of the SWF. You can get that button by doing the following:1) Open the project which you want to publish.2) Open preferences bya) Use Shift + F8, ORb) Edit->Preferences…3) In “Category”, go to “Project”->”Start and End”.4) Uncheck “Auto Play” check box (under “Project start options:”)~Chandranath

  3. Hello I am looking for some assistance with User-Defined Variables. I want to have the students add their name to the first slide so I can personalize their experiance in the learning videos I am creating.The text box appears and I can also use a “submit” button but when the information is added and the submit button clicked the movie stay’s paused and the success caption does not display.Can anyone assist me with this… perhaps I am missing an important setting?Thank youCorrine

  4. hi im having trouble feeding teb results to the certiicate widget the results show in the scores page but do not transfer accross i thought the widget got its score from previous page could you shed some light please.

Leave a reply