Most software today uses right-click functionality to accomplish various software tasks. In Adobe Captivate, you can add click boxes that support left and double-click. The right-click functionality is trapped by the Flash Player to display the player menu. This article describes how to add right-click functionality to a simulation. Right-click functionality is an essential tool for creating software testing using Adobe Captivate, and it greatly enhances the ability of Adobe Captivate to teach software applications. The approach described in this tutorial allows you to size and place the right-click area almost as intuitively as adding a Adobe Captivate Click box. The solution will work with Adobe Captivate 1.01, Adobe Captivate 2, and Adobe Captivate 3.
Fortunately, Adobe Captivate already provides the ability to add Macromedia Flash animations into a Adobe Captivate project. Since Flash ActionScript can incorporate logic, it is possible to create intelligent animations that work with Adobe Captivate to enhance its capabilities.
In this tutorial, I provide a Flash file, RightClickAnimation.swf, that you can add to a Adobe Captivate slide to very easily add right-click functionality to a Adobe Captivate simulation. Adobe Captivate allows you to place and size animations so that it is possible to add an animation and at the same time, define a right-click area when you place the animation on the slide. In this way, the Flash SWF file mimics right-click functionality for your end user in your Adobe Captivate content.
Most Flash SWF files work the same whether playing within or outside of Adobe Captivate content. The right-click SWF file, however, is a rare exception since Flash displays its own menu when a user right-clicks. In short, you must block the Flash menu when running the SWF file standalone or in a browser so that it does not interfere with the right-click menu you want to show in your demo or simulation. This document provides you with the steps and HTML code required to overcome this issue.
The detailed instructions below allow anyone, even non-programmers, to add right-click functionality to your Adobe Captivate simulations. Once you have done it a few times you will find it only takes a few minutes to add right-click functionality to any slide.
If you have questions, please e-mail me. If you want to know more about OpenSky Learning please visit our website at: http://www.openskylearning.com.
This tutorial differs from the article called, Adding right-click functionality to Adobe captivate content by Steven Shongrunden in the following ways:
In order to make the most of this article, you need the following software and files:
It is usually a good idea to see a working example before trying to create one. I have created a Adobe Captivate simulation that is a mock task to be completed in Microsoft Word. The instructions for the task are displayed in gold. You will no doubt find more creative ways to use the right-click animation but this example, even if it is a bit over simplified, demonstrates the concept. View the simulation and follow the instructions.
http://www.openskylearning.com/CaptivateAnimations/RightClickDemo/RightClick_Skin.htm
Use the following steps ton incorporate the right-click animation into Adobe Captivate.
Select the menu Insert > Animation and use the following steps to add right-click functionality to your content:
Note:
Publish the Adobe Captivate content.
Important note: You have added right-click functionality to your simulation and it works in Preview mode. There are now two more tasks to accomplish to make it function correctly when running outside of Adobe Captivate. First you may want to make it score correctly, if you are using the right click in an assessment. Additionally, you must block the normal Flash interception of the right-click which produces the Flash right-click menu. You cannot do this in Flash, so you do it in the HTML file that calls the Adobe Captivate simulation.
Scoring does not work correctly in preview mode. To see your scoring you must browse the HTML. If you are not interested in scoring, you can skip this section, which explains how to block the Adobe Flash right-click menu.
Scoring for the right click does not require you to do anything special, but you should understand that the way it works behind the scenes is a bit different from what you probably would expect and the reporting is a bit confusing until you understand how it works.
Before I start trying to explain how it works, I should say something about why it works this way. To score the right click, I have to change Adobe Captivate internal variables. I was not able to find a variable (that I had access to) that would allow me to change the scoring for an action. I was, however, able to change the max score. And since I could not give credit for a correct right click from a user, I reduced how many answers a user had to get right, in order to score a correct right click. This allows the user to get 100% if he/she gets the right click correct, and a lower percent if the user gets it wrong.
In other words, a correctly-executed right-click answer subtracts one from the maximum (possible) score instead of adding one to the actual score. This works out to be almost the same thing if you are scoring by percentage correct.
Let me explain with an example. Suppose you had a simulation with four slides and each slide contains an interaction with the weight of one; the total achievable score, or maximum score is four points. If a user now answers all but the right-click question correctly, the user has a score of three out of four (or 75%).
If a user answers all interactions correctly including the right-click method you would expect a score of 100% and this is what you will get. Using our example, the maximum score will automatically be reduced by one point from four to three. As a result, the user will receive a 100% score displayed as three out of three answers correct, not four out of four, as you would expect. I know this is a bit complicated to grasp, but if you read this carefully and then play with it a little you will see how it works and how you can use the right click method in your scoring. If you still don’t understand the concept, after playing with it, contact me by e-mail and I will explain further.
In summary, to get reporting working in this way, you do the following:
You have added right-click functionality to your simulation and it works in Preview mode. There is still one important task to accomplish to make it function correctly when running the Adobe Captivate SWF file outside of Adobe Captivate. You must block the normal Flash interception of the right-click, which produces the Flash right-click menu. Since you cannot do this in Flash itself, you must do it in the HTML file that calls the Adobe Captivate simulation.
Use this technique first if you can. It is the easiest and quickest way to create HTML that will run your SWF file and block the Flash right-click menu.
If you use SCORM and must use the HTML that Adobe Captivate creates, you must modify the HTML generated by Adobe Captivate. There are four changes that you must make to the HTML file in this scenario:
1 <script src="standard.js" type="text/javascript"></script>
2 <script src="RightClick.js" type="text/javascript"></script>init().init() tag, as in the following example:<BODY onload="javascript:init();" bgcolor="#ffffff">
Note: If your code already has an onload() function, noting that the routine that is being called by the onload() function. Add the call to the init() function to that routine. The point is to make sure that the init() function is called when your HTML runs.</head>
<DIV ID=oOwnCapture > </DIV>wmode=opaque. Once again, find the line that contains your program. Although your program can be named anything you like, in this case assume that your program is called Right Click Demo_Skin.swf as in line 1 below. Add a param line to set the wmode to opaque, as shown in line two. Note that the parameter _RCA_attempts to set the number of right-click attempts before Adobe Captivate will move to the next slide. If you want to provide infinite attempts, set the number high.1 '<param name="movie" value="Right Click Demo_Skin.swf?_RCA_attempts=4">'+
2 '<param name="wmode" value="opaque">'+You will need to make this same change twice. The second time, the <noscript> section looks like the following:
<param name="movie" value="Right Click Demo_Skin.swf?_RCA_attempts=4">
<param name="wmode" value="opaque">
Note: All four changes above must be correct or the right-click menu from Flash will not be blocked. If the menu continues to show after making these changes, make sure that you have done all four steps correctly. When your HTML works correctly, save it, since it is very easy to overwrite your XML when re-publishing your Adobe Captivate file. This method has been tested with IE (7.0)
William Heinz is President of OpenSky Learning, Inc. William has been associated with developing innovative training games, tests, authoring systems and learning templates for 15 years and has consulted with large companies to assist them in making their Computer based training more effective and less costly. The Adobe Captivate Right Click Capability allows corporations to use Captivate for Performance based testing.
OpenSky Learning has used the OpenSky Authoring System to create innovative Training solutions. The OpenSky approach, which includes dialog between animated characters, games and testing, makes web based training effective and interesting while keeping the development time at a minimum (see demos at http://www.openskylearning.com).
OpenSky has consulted with a number of corporations, providing templates and processes to speed up CBT delivery time while improving the quality of the content.
Since job task analysis is an important ingredient for any testing program, OpenSky worked with ASPTrain to create JTAAS (Job Task Analysis Automated System — a program used by corporations to automate the JTA process in line with EEOC standards) and has worked with Compuware to design and implement the Compuware Certification Program.
William was a previously a vice president at Kelly Services and was responsible for the development of the computer based testing and training used in over 1000 Kelly branches across the US and in Europe. He was also the primary developer of the authoring system used by Microsoft in the original MOUS exams and owns three testing and training related patents..