Adding 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.

You can add the system variables that are available out-of-the-box, or define your own variables and add them to your project.

For more information on variables, see About variables.

You can associate a variable with the following objects or scenarios in Adobe Captivate:

  • Text captions and rollover captions.
  • Text entry boxes (success, failure, or hint captions). See this blog for more information.
  • Advanced actions. See this article for more information.
  • Widgets. See this article for more information.
  • Movie navigation. See this article for more information.

This tutorial explains how to assign variables to text and rollover captions.


  1. Double-click the caption and select the text.
  2. In the Property Inspector, click ‘X’ in the Format section.

    Insert variable icon in the Property Inspector

    The Insert Variable dialog box appears.

    Insert Variable dialog box

  3. In the Variable Type list, click the type of variable you want to insert.
  4. In the Variables list, click the name of the variable.
  5. In the Maximum Length box, type the maximum length of the string that the variable can hold.
  6. Click OK.


Whenever you have content or data that changes frequently, define a variable and insert it in the project, instead of the actual data. When you change the value of the variable, the change is reflected in all places where the variables are inserted in the project.

Variables also help you collect run-time data that users provide, for example, their user name or identification number. In this case, the variable value gets populated the first time the users provide data. All subsequent instances at run-time and the value is reflected in all places where you have used the variable in the project.


See Also


Related topics


Helpful links