[an error occurred while processing this directive]

Community Publishing

Last Updated:
User Level:
Adobe Captivate

Need more tips and tutorials?

Customized Course menu, based on a pretest (CP5)

Startfile (zipped)


When using a pretest, the user will not necessarily have to take all the course modules. This tip uses Advanced actions to customize the menu with the modules, based on the pretest: only the modules to be studied will remain in the menu. Moreover when a module has been finished, it will also disappear from the menu. The new possibility in CP5 to apply effects using advanced actions will be used. The construction of the pretest itself was treated in another tip 'Constructing test with multiple results' to be found here:

Sample SWF

Watch this SWF to understand the workflow: after the Intro slide, in the slide AskValues you'll be asked to enter three scores (normally results of the pretest).  The course menu will appear in slide Menu: the name of the modules for which the score was at least 11 will disappear (effect). You can click the remaining modules to jump to the corresponding module (here represented by 1 slide). After returning to the Menu slide, the module you just visited will disappear too. When all modules are gone, you'll get a message. Clicking on the slide will get you to the last slide, End.
In this example the menu has only 3 modules, but this can be easily changed to whatever number you want.
In the master slides, used for this project, a rollover caption was added showing the slide label. You can see the rollover when hovering over my name on each slide.


Variables to be created

  1. to store the values entered on slide AskValuesv_score1, v_score2, v_score3; those variables do not have an initial value
  2. to store the number of modules to be taken: v_modules; with an initial value = 0


Objects on slides

Slide 2, labeled AskValues has (see also Timeline Image):

  • Text Caption Question
  • 3 Text Captions, labeled TextScore1, TextScore2, TextScore3
  • 3 Text Entry Boxes,  labeled Score1, Score2, Score3; input values will be stored in variables v_score1, v_score2, v_score3

Timeline AskValues


Slide 3, labeled Menu has (see also Timeline Image):

  • Text Caption MenuTitle
  • 3 Text Captions Module1, Module2, Module3
  • 3 Click boxes covering up the previous 3 Text Captions: Click1, Click2, Click3
  • Text Caption Congratulations, initially invisible
  • Click box ClickToEnd, covering up all the slide, initially invisible (which means inactive for a Click box that is always invisible by default). The action On success for this Click box is to jump to the last slide End.


Timeline Menu slide


Advanced Actions

MenuShow (conditional action), triggered on entering slide 'Menu'

This action has 4 different conditional actions, labeled Module1, Module2, Module3, FinishCheck. By default you have 3 conditional actions (Untitled), use the + button to add a 4th. The first three conditions are similar. Here is a screenshot of the conditional action Module1, part IF (THEN):

Condition Module 1 - IF Then

 If the user didn't get the master score (10) for the first module, the variable v_modules will be incremented.

Condition Module1 - ELSE

 If the user did pass the pretest for the first module, the Click box that he could use to move to the module will be hidden (=disabled). In the second action an effect is applied, so that the user will see that the module indication disappears. The parameters of this effect can be opened by using the ellipsis. The chosen parameters are visible on the screenshot: as well the Alpha (opacity) as the size will get from 100% to 0%.

The next two conditions, Module2 and Module3 can easily be created using the copy/paste features.

The last condition FinishCheck is checking if all modules have disappeared from the menu:

Condition FinishCheck

When all modules have disappeared (v_modules contains the value 0), the Text Caption Congratulations, will appear with an effect and stay on the stage. I did open the Parameters for this effect. The click box ClickToEnd, that allows the user to go to the last slide is also enabled. There is no Else action for this condition.

Exit1, Exit2, Exit3 (standard actions), to be triggered on exiting last slide of each course module

At the end of each course module, an advanced action has to be executed. Here is a screenshot of the action Exit1:

Action Exit1

Because this module has to disappear from the menu, the score corresponding to the module (in this case v_score1) is set to 12, which was the maximum score. Moreover, the counting of the remaining modules will start again when entering the slide Menu, so I reset the variable v_modules to its initial value (0) before jumping to the menu again.

Using the duplicate functionality (button is highlighted in the screenshot) the remaining advanced actions (Exit2, Exit3...) are quickly created. Only the first action (variable v_score"x") has to be edited in the duplicates.


Start file

If you want to practice this tip, you can use the start file provided. In this file all objects are labeled. Since this tutorial concentrates on the contruction of the menu slide, the variables used for the Text Entry Boxes on the second slide (AskValues) are already created, which is not the case for the variable v_modules.



Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License