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?


Using Advanced Actions (CP5) to show conclusion, based on multiple scores

 

Startfile (zipped)

Goal

This tip concentrates on showing a conclusion, based on multiple results from a test. his tip is also meant as an introduction to the interface of Advanced Actions in CP5, it uses one Standard action and a more complex Conditional Action.
The construction of the test itself is explained in another tip 'Constructing test with multiple results', to be found in http://kb2.adobe.com/community/publishing/852/cpsid_85255.html. T

Sample SWF

You can play this SWF for better understanding: after the Intro slide, in the slide AskValues you'll have to enter 3 integers (normally those will be the multiple results from a test) and confirm each with the Submit button. On the third slide Conclusion you'll see the conclusion. If two scores are identical, you'll get a 'red' Text Caption. Clicking the button Scores will show the multiple results. When hovering the mouse over my name (bottom right of each slide), you'll see a Rollover caption with the name of the slide. This Rollover caption is in the Master slide used for this project and contains the system variable cpInfoCurrentSlideLabel.

 

Variables to be created

  1. to store the values entered on slide AskValues: v_Aud, v_Kine, v_Vis; those variables do not have an initial value
  2. to store the type: v_Type; with an initial value = NoType

Objects on slides

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

  • Text Caption Question
  • 3 Text Captions, labeled AskAudio, AskKine, AskVisual
  • 3 Text Entry Boxes,  labeled TEBAudio, TEBKine, TEBVisual; input values will get into variables: v_Aud, v_Kine, v_Vis. 

Timeline Slide AskValues

Slide two, labeled Conclusion has:

  • Text Caption labeled Type, initially invisible, that will eventually be visible to show the conclusion about the type, uses the variable v_Type
  • Text Caption labeled NoType, initially invisible, that will eventually be visible to show that there is no conclusion about the type
  •  Button ScoreButton that will trigger the Standard action ShowScore
  • Text Caption labeled ScoreResults,  initially invisible, uses the variables  v_Aud, v_Kine, v_Vis, appears with effect

Timeline slide Conclusion

 Advanced Actions

TypeTest, conditional action to be triggered on entering slide 2 (Conclusion)

This action has 4 different conditional actions, labeled Audio, Kine, Visual, NoType. 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 Audio conditional action Audio. There are no actions needed for ELSE:

Condtional action Audio

 

The condition is self-explanatory and checks if the value of v_Audio is the greatest of the 3 scores. If this is the case, the default value of v_Type, which was NoType, will be replaced by Auditory. 

The 4th condition, testing if at least 3 scores are equal, is slightly different, needs no ELSE actions neither:

 In this case the default value of the variable v_Type is not changed.


ShowScores, Standard action to be triggered by the button Scorebutton on the slide Conclusion

This is a really simple standard action, includes an Apply Effect action, in this case the FadedZoomIn effect is used. To set the parameters, use the ellipsis button. In the screenshot the parameters dialog box is opened. Parameters were set for scaling horizontally and vertically (20 to 100%) and for transparency (Alpha from 20 to 100%).

The action 'Apply Effects' is one of the subjects of another Tip, to be found here:
kb2.adobe.com/community/publishing/855/cpsid_85530.html

 

Start file

To try out the Advanced actions (with creation of variables), I include a file StartFile (to be found at the top of this Tip). This cptx-file has two slides: AskValues and Conclusion using the Master slide 'GlobalMaster'. All objects are created and labeled, but there are no user variables, nor Advanced actions. Because of the missing variables, in the Text Captions Type and ScoreResults on the second slide, you'll have to inserted the user variables v_Type (in Type) and v_Aud, v_Kine, v_Vis (in ScoreResults) after creating them.

 

 

 

 

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