<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>elearninglive.com &#187; actions</title>
	<atom:link href="http://elearninglive.com/wordpress/tag/actions/feed/" rel="self" type="application/rss+xml" />
	<link>http://elearninglive.com/wordpress</link>
	<description>Quality web solutions.</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:38:03 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tracking User Progress in Captivate 4 Using Variables and Actions</title>
		<link>http://elearninglive.com/wordpress/2009/01/tracking-user-progress-in-captivate-4-using-variables-and-actions/</link>
		<comments>http://elearninglive.com/wordpress/2009/01/tracking-user-progress-in-captivate-4-using-variables-and-actions/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 04:05:02 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Captivate]]></category>
		<category><![CDATA[actions]]></category>
		<category><![CDATA[Captivate 4]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://elearninglive.com/wordpress/?p=222</guid>
		<description><![CDATA[Wanted to take a shot at exercising Captivate 4&#8217;s new (and very useful) new features: actions and variables.
To try them, I decided to create something useful (for once!) by putting together a sort of &#8216;user progress&#8217; slide. The premise is that there is one central slide that is a &#8216;jump-off&#8217; or starting point for users [...]]]></description>
			<content:encoded><![CDATA[<p>Wanted to take a shot at exercising Captivate 4&#8217;s new (and very useful) new features: actions and variables.</p>
<p>To try them, I decided to create something useful (for once!) by putting together a sort of &#8216;user progress&#8217; slide. The premise is that there is one central slide that is a &#8216;jump-off&#8217; or starting point for users to go to various parts of the slide deck (ie, various parts of the course). Once there, they view the content and then return back to the main/start slide and that particular section of the content that they went to previously is marked as &#8216;completed&#8217; (symbollicaly, of course) by &#8217;show&#8217;ing a graphic on the slide.</p>
<p>If that confusing description hasn&#8217;t scared you off already, I&#8217;ll quit trying to describe it and just show you the damn thing. <a title="Example" href="http://elearninglive.com/downloads/CP4examples/progress_list.htm" target="_blank">Here is a link to the working example</a>, and what follows on this page is a walkthrough of how I did it.</p>
<div id="attachment_223" class="wp-caption aligncenter" style="width: 510px"><a href="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/1-30-2009-10-22-20-pm.png"><img class="size-full wp-image-223" title="Track User Progress with Actions and Variables in Captivate 4" src="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/1-30-2009-10-22-20-pm.png" alt="Track User Progress with Actions and Variables in Captivate 4" width="500" height="392" /></a><p class="wp-caption-text">Track User Progress with Actions and Variables in Captivate 4</p></div>
<p>It works well and I will definitely use this type of thing for tracking intra-course progress. Of course I won&#8217;t use images of doors, but if you imagine a bulleted list of topics instead, where instead of a standard &#8216;bullet&#8217; there is a checkbox next to each topic or image, and then when the user has viewed that topic and returned to the main slide the checkbox is checked.</p>
<p>So &#8211; how does it work?</p>
<p>I wish I could just paste the code, but I can&#8217;t &#8211; Captivate won&#8217;t let me copy/paste code to/from the Actions window, which sucks. There are serious limitations with the scripting capabilities of Captivate 4, but heck, I think we all expected it to be limited considering it&#8217;s brand new. So, here&#8217;s how I did it:</p>
<p><strong>Step One &#8211; Create Slides</strong></p>
<p>I created a total of 9 slides, each with picture of doors that I grabbed off google images. On the first slide I left the image intact. On the remaining 8 slides, I used Captivate&#8217;s new image editing crop feature (works great) to crop the &#8216;doors&#8217; image on each slide to show just it&#8217;s corresponding door.</p>
<p>On the first slide (the one with all the doors) I inserted blue checkmark objects and gave them each an object name of &#8220;chkX&#8221;, where X was equal to 1 through 8 (for each door). I made each of those checkmark symbols not visible by default, by unchecking the &#8216;Visible&#8217; checkbox in the options tab for the symbol.</p>
<p><strong>Step Two &#8211; Create User Variables</strong></p>
<p>Then, I created a set of User variables &#8211; one for each of the doors, and assigned them each a value of zero (0):</p>
<div id="attachment_224" class="wp-caption aligncenter" style="width: 510px"><a href="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/variables.png"><img class="size-full wp-image-224" title="User Variables" src="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/variables.png" alt="User Variables" width="500" height="512" /></a><p class="wp-caption-text">User Variables</p></div>
<p><strong>Step Three &#8211; Create Custom Actions</strong></p>
<p>Next, I created two custom actions:</p>
<div id="attachment_225" class="wp-caption aligncenter" style="width: 510px"><a href="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/check-doors-viewed-code.png"><img class="size-full wp-image-225" title="Check Doors Viewed Custom Action Code" src="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/check-doors-viewed-code.png" alt="Check Doors Viewed Custom Action Code" width="500" height="513" /></a><p class="wp-caption-text">Check Doors Viewed Custom Action Code</p></div>
<p>The first action I created I named &#8220;Check Doors Viewed&#8221; and this was by far the most time-consuming part of the process, mostly because the actions window is SLOW when inputting anything more than a few lines of code. Please let me know if you experience this slowness too. So if you look at the outlined code block you can see what is happening. In plain-speak:</p>
<p>Check to see if the door1 variable is equal to 1 and if it is, then make the chk1 symbol visible. The chk1 symbol is the object name for the blue checkmark that sits over top of the first door. I then kept going and added the same code for each door/checkmark (for a total of 8 in my example).</p>
<p><strong>Step Four &#8211; Set Slide &#8216;On Enter&#8217; Property</strong></p>
<p>I then went into the slide properties for the first/main slide (the one with all the doors) and, on slide enter, I set it to run the Check Doors Viewed action so that it will enable any checkmarks that need to be made visible:</p>
<div id="attachment_226" class="wp-caption aligncenter" style="width: 501px"><a href="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/slide-properties.png"><img class="size-full wp-image-226" title="Slide Properties for Main/First Slide" src="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/slide-properties.png" alt="Slide Properties for Main/First Slide" width="491" height="584" /></a><p class="wp-caption-text">Slide Properties for Main/First Slide</p></div>
<p><strong>Step Five &#8211; Add a &#8216;Clear Checkmarks&#8217; Button</strong></p>
<p>I then decided to add a &#8216;clear checkmarks&#8217; (ie, clear progress) button to the main slide. I set that button&#8217;s properties so that, when clicked, it runs the &#8216;Clear Checkmarks&#8217; custom action, which has this code in it:</p>
<p><a href="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/clear-checkmarks-1.png"><img class="aligncenter size-full wp-image-227" title="Clear Checkmarks Action, Part 1" src="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/clear-checkmarks-1.png" alt="" width="500" height="511" /></a></p>
<p>The actions window is fixed in size, so I couldn&#8217;t capture all the code in one screenshot, so here&#8217;s the rest:</p>
<div id="attachment_228" class="wp-caption aligncenter" style="width: 510px"><a href="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/clear-checkmarks-2.png"><img class="size-full wp-image-228" title="Clear Checkmarks Action, Part Two" src="http://elearninglive.com/wordpress/wp-content/uploads/2009/01/clear-checkmarks-2.png" alt="Clear Checkmarks Action, Part Two" width="500" height="516" /></a><p class="wp-caption-text">Clear Checkmarks Action, Part Two</p></div>
<p>Note that highlighted last line, where I have it &#8216;reload&#8217; the 1st slide. I did this so that, when slide one is restarted, it will trigger the previous direction to run the &#8216;Check Doors Viewed&#8217; action from before.</p>
<p>That&#8217;s about it. I have the <a title="Captivate 4 Progress Tracking Example" href="http://elearninglive.com/downloads/CP4examples/progress_list.zip">source available for download here.</a></p>
<p><strong>Reflections</strong></p>
<p>All in all it&#8217;s fairly straightforward and easy to use. Keep in mind that I&#8217;m a pretty decent actionscript coder, and have also done some Java coding in the past, so I&#8217;m comfortable scripting. The one thing that is really annoying is that the actions window gets *really* slow/sluggish if you are trying to do anything that needs more than a few lines. Another huge problem is that you cannot execute two actions in sequence. In other words, I couldn&#8217;t set the &#8216;On Enter&#8217; slide to execute multiple USER actions &#8211; you can execute multiple system actions, but not actions you create. So there was no way to do something like, &#8220;on slide enter, execute the Clear Checkmarks action and then execute the Check Doors Viewed action&#8221;.</p>
<p>I really hope that Adobe can fix the sluggishness of the Actions window, or better yet allow for actions to be imported as text files. I realize they have to ensure that the code/syntax is legit before it can be applied, so perhaps some sort of validation check can be built into the import. Better yet, just have an actions window, like in Flash, complete with a &#8216;check syntax&#8217; button. That would be so much faster. But more pressing to me is the need to be able to execute multiple custom actions.</p>
<p>Am I off-target? I definitely could be. Please leave a comment if I&#8217;m missing something in regards to these features, or a better approach to the example.</p>
<p>UPDATE: A reader (Connie Price) has graciously submitted a PDF that details how she used Advanced Actions in her project. <a href="http://elearninglive.com/tutorials/misc/AdvancedActionHowTo.pdf">Click here to view the PDF.</a><a href="http://elearninglive.com/tutorials/misc/Fagerstrom_Q1_demo.cp">Click here to view a source Cp demo file.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elearninglive.com/wordpress/2009/01/tracking-user-progress-in-captivate-4-using-variables-and-actions/feed/</wfw:commentRss>
		<slash:comments>65</slash:comments>
		</item>
	</channel>
</rss>
