How to Build Your Own Custom Conditional Articulate Tab to Go to Any Slide, Part 2

In the first post, we learned how to build our own custom articulate tab (toolbar item) that would go to any slide. In the second post, we learned how to make this tab (toolbar item) conditional. In this post, we are going to learn how to utilize the given drop down sequence to add a little more pazazz to the button, or rather, to communicate to the end user why the button may not be working when they click on it.

As you may remember, in flash, open your TestTool.fla file from the Articulate SDK. Go to the ACTIONS layer, frame 2 under init. Click F9 to reveal your actions panel, and you will see your artModuleAPI function. Inside the switch statement make the following edits:

		case "activate_onclick":
		case "activate":
			gotoAndPlay("activate");
			break;
		case "deactivate":
			gotoAndPlay("deactivate");
			break;

Now to add our conditional statements, we want to add them to the activate side. We don’t want the toolbar item (or tab if you will) to work (or gotoAndPlay(“activate”);) if certain conditions aren’t met.

1. Add Condition (if statement)
So we added our condition:

		case "activate":
			nCurSlide = ArtAPI.GetCurrentSlide();
			//so we get the current slide number.
			if (nCurSlide>10) {
			//where 10 = whatever threshold slide you choose
				ArtAPI.PlaySlideNum(<strong>nGotoSlideNum</strong>);
 				//where <strong>nGotoSlideNum</strong> is whatever slide you want to go to upon clicking
			}
			gotoAndPlay("activate");
			break;
		case "deactivate":
			gotoAndPlay("deactivate");
			break;

2. Add Else Statement
Now we want to add an else statement to our if statement from case “activate” to initiate the dropdown box (like ATTACHMENTS). So we add the following:

		case "activate":
			nCurSlide = ArtAPI.GetCurrentSlide();
			//so we get the current slide number.
			if (nCurSlide>10) {
			//where 10 = whatever threshold slide you choose
				ArtAPI.PlaySlideNum(<strong>nGotoSlideNum</strong>);
 				//where <strong>nGotoSlideNum</strong> is whatever slide you want to go to upon clicking
			}
			else {
				gotoAndPlay("activate");
			}
			break;
		case "deactivate":
			break;

3. Edit the dropdown movie clip

Articulate Test Tool

  1. First, if your forward_panel is locked, unlock it by clicking on the lock beside the layer in the timeline.
  2. Second, open the panel movie clip by double-clicking on it. It should say Scene 1 CLIP – Forward panel.
  3. Third, ensure that the buttons are unlocked by clicking on the lock beside the layer in the timeline.
  4. Fourth, with my Selection Tool (shortcut V), I select all the buttons by dragging a box around all the buttons and delete them by pressing delete.
  5. Fifth, with my Text Tool (T), I draw a text box and write something like, “I’m sorry, but you cannot go to that section until you have completed the Introduction.” Then from the Paragraph > Format menu, I select center. Then lock the Buttons layer.
  6. Sixth, unlock the Title layer, and change your title, here, “Error Message!”. Then lock it back.
  7. Seventh, if you wish to change the Exit label, change it by unlocking btn – Submits layer and changing that text. Then lock the layer again.
  8. Eighth, when finished editing the dropdown panel, click on Scene 1.

For those who like Screenrs, check out my first ever Screenr. I must first apologize for the sound because I do not have a microphone except the one that comes with my laptop.

Then as always, click File > Save As naming it whatever you’d like. Then publish the SWF file hitting F12 (note: when you publish, you may receive an error stating, “Cannot open a protected movie.” Don’t worry about it.). Note, whatever you title your file, it must be in the art_plugins.xml file. So if this was saved beginningSect2.swf where it takes the user back to the beginning, then the XML will be:

<item>
		<enabled>true</enabled>
		<id>5050</id>
		<type>navtool</type>
		<title>Section 2</title>
		<file>beginningSect2.swf</file>
		<labeltext>Section 2</labeltext>
	</item>
About Travis Smith

As an accomplished, performance-driven training and development professional with broadly diverse experience encompassing instructional design, e-learning, curriculum development, leadership training, social media, as well as strategic planning, Travis continually expands upon his existing skill set to educate colleagues on the implementation of new technologies with proven capabilities in operations analysis, continuous improvement, quality assurance and safety along with a solid commitment to excellence.

Speak Your Mind

*