Accessibility
[an error occurred while processing this directive]

Community Publishing

Created:
2010-06-25
Last Updated:
2010-08-13
by
User Level:
Intermediate/Advanced
Products:
Adobe Captivate

Need more tips and tutorials?


Constructing Test with Multiple Results (CP5)

Startfile (zipped)

Goal

Tip for constructing a test that will result in multiple scores (in this example 3 scores), and a conclusion will be made based on those scores. The part about the conclusion has been explained in the tip 'Using Advanced Actions to show Conclusion based on Multiple Scores'. This tip concentrates on the construction of the test itself and the collection of the multiple scores. Of course, Advanced actions and variables are important in this tip. Both standard actions and conditional actions will be needed, and the new duplicate/copy/paste functionalities of the CP5 interface for Advanced actions will save a lot of time.

Sample SWF

Play this SWF for better understanding. In this example, number of Question slides is limited to 2, but this number can easily be extended. Subject, as explained in the introduction slide, is checking the learning type. Choose one of the answers on each Question slide. A "Change" button allows you to change a choosen answer, the "Submit" button gets you to the next slide. If you try to submit without answering you'll get a warning, and there will be no jump to the next slide. The last slide shows the conclusion, based on the multiple scores. Two master slides were used for this movie: one for the Instruction/Score slide and another for the Question slides. Each of this master slides has a Rollover Text Caption to show the slide label (hover over my name to show the caption).

Variables to be created

  • For total scores (Auditory, Kinesthetic, Visual); labeled v_ScoreAud, v_ScoreKine, v_ScoreVis; the content will be numbers, to be incremented whenever a corresponding answer is chosen; give them an initial value=0.
  • To store answer on question slide, reused on each slide: v_aud, v_kine, v_vis; they will have the value 1 or 0, to be added to the scores; no need for an initial value for those variables.
  • To store the type needed for the conclusion: v_Type; give this variable an initial value = NoType.

Objects on slides

Instruction slide is self-explanatory. I'm used to label almost all the objects, but in this tip will mention the labels exclusively for the objects that will be referred to in the Advanced actions. If you want to try it out without doing all the labeling, labels are ready in the sample file.

Question slides
  • 1 Text Caption for the Question  (has the style 'Halo Green' in the example)
  • 3 Text Captions for the answers (style 'Transparent')
  • 3 Click boxes covering up the answers, labeled Click1_Aud, Click1_Kine, Click1_Vis (first Question slide), Click2_Aud, Click2_Kine, Click2_Vis (second Question slide)
  • 3 symbols (green circles in the sample) used to indicate the chosen answer to the user, initially Invisible, labeled Yes1_Aud, Yes1_Kine, Yes1_Vis (first slide), Yes2_Aud, Yes2_Kine, Yes2_Vis (2nd slide)
  • 2 buttons, labeled Change1, Submit1 (first slide), Change2, Submit2 (2nd slide)
  • 1 Text Caption (style 'Glass Green' in the example), initially Invisible, to appear if the user submits without chosing an answer; labeled Correction1, Correction2
Score slide
  • 1 Text Caption, labeled Type (style 'Halo Blue'), initially Invisible, that will appear if there is a conclusion about the Type (in this caption the user variable v_Type is inserted), 
  • 1 Text Caption, labeled NoType (style 'Halo Red'), initially Invisible, that will appear if there is no clear conclusion about the Type
  • 1 Text Caption, labeled ScoreResults (style 'Glass Blue'), initially Invisible, that will appear if the button Scores is clicked
  • 1 Button "Scores", labeled ViewScore

Advanced Actions

Initslide (Standard action) to be triggered on entering each Question slide

Because the variables v_aud, v_kine, v_vis are reused on each question slide, this action reinitiates them to the value 0.

InitSlide

 Click1_Aud, Click1_Kine, Click1_Vis, Click2_Aud, Click2_Kine, Click2_Vis,... (standard actions)

These actions are triggered by the corresponding click boxes over the answers on the Question slides, I labeled them identically to those click boxes. You can use the duplicating functionality, once created the first of these standard actions and edit the duplicates. Here is a screenshot of the action Click1_Aud:

Click&_Aud

This standard action is rather simple:  the user variable v_Aud (had the initial value=0) is changed to 1. The symbol Yes_Aud that indicates the chosen answer, initially invisible, will appear (if you like to, you can also apply an Effect). To prevent the user choosing 2 answers on one question slide, the click boxes (Click1_Kine, Click1_Vis) over the remaining answers are hidden.

To duplicate this action, use the duplicate button in the top right corner of the Advanced actions dialog box, highlighted in this screenshot:

DuplicateAction

The duplicate gets a default label Duplicate_of_Click1_Aud1, but you can edit this label. Edit the different variables in the script to adapt it.

ChangeAnswers1, ChangeAnswers2,... (standard actions)

Those actions will be triggered by the 'Change' buttons on Question slides

To give this change opportunity to the user, you have to be sure that the Timer gets back a little bit, to hide (again) the symbol that had appeared, and to make the hidden Click boxes (again) available. You also have to reinitiate the user variables v_Aud, v_Kine, v_Vis. For this purpose,  I copied the 3 Assign-actions from the Advanced action InitSlide. In this screenshot the Copy button (for statements-actions) is highlighted in yellow, the Paste button in green.

ChangeAnswers

Again you can use the Duplicate action functionality to create the other ChangeAnswers actions and edit the script label and the script itself in the Duplicate.

SubmitButton1, SubmitButton2,... (conditional actions)

Those actions will be triggered by the Submit buttons on the Question slides.

SubmitIfThen

 This "If Then action" shows the Text Caption Correction1 to warn that an answer has to be chosen, and will only be executed if all the user variables still have their initial value = 0. In all other cases, the folowing "Else" action will be executed:

SubmitElse

The scores will be incremented. This will result in only one score to be incremented, because only one answer has been chosen. With the last action, the test jumps to the next slide.

The Duplicate functionality can be used to create as many of this Advanced actions as needed. The only editing to be done in a duplicate is the action about showing the Text Caption Correction, because this caption has a different ID on each Question slide. The IF condition and all the other actions are identical in all duplicates.

TypeChoice (conditional action) to be triggered on entering the last slide labeled 'Score'

This action (and the following) has been explained in the tip 'Using Advanced actions to show a conclusion, based on multiple scores'.

ShowScores (standard action) to be triggered by the button 'Score'

This action has been explained in the tip 'Using Advanced actions to show a conclusion, based on multiple scores'.

 

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 question slides, the variables (v_ScoreAud, v_ScoreKine, v_ScoreVis, v_Type) and advanced actions (TypeChoice, ShowScores) needed on the last slide, labeled Score are provided in the start file. 

 

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