Book Image

Mastering Adobe Captivate 2019 - Fifth Edition

By : Dr. Pooja Jaisingh, Damien Bruyndonckx
Book Image

Mastering Adobe Captivate 2019 - Fifth Edition

By: Dr. Pooja Jaisingh, Damien Bruyndonckx

Overview of this book

Adobe Captivate is used to create highly engaging, interactive, and responsive eLearning content. This book takes you through the production of a few pieces of eLearning content, covering all the project types and workflows of Adobe Captivate. First, you will learn how to create a typical interactive Captivate project. This will give you the opportunity to review all Captivate objects and uncover the application's main tools. Then, you will use the built-in capture engine of Captivate to create an interactive software simulation and a Video Demo that can be published as an MP4 video. Then, you will approach the advanced responsive features of Captivate to create a project that can be viewed on any device. And finally, you will immerse your learners in a 360o environment by creating Virtual Reality projects of Adobe Captivate. At the end of the book, you will empower your workflow and projects with the newer and most advanced features of the application, including variables, advanced actions, JavaScript, and using Captivate 2019 with other applications. If you want to produce high quality eLearning content using a wide variety of techniques, implement eLearning in your company, enable eLearning on any device, assess the effectiveness of the learning by using extensive Quizzing features, or are simply interested in eLearning, this book has you covered!
Table of Contents (17 chapters)
7
Working with Quizzes
14
Variables and Advanced Actions

Creating the pickMessages() function

In this section, you will create a JavaScript function that will randomly pick one message in each array and save it as a Captivate variable. Use the following steps to copy/paste the code into the JavaScript window that is currently open in Adobe Captivate: 

  1. Navigate to the Chapter14/js folder of the exercise files.
  2. Open the 02-pickMessages.js file in any text editor available on your system.
  3. Use the Ctrl + A (Windows) or the command + A (Mac) shortcut to select all the content of this file. 
  4. Use the Ctrl + C (Windows) or the command +C (Mac) shortcut to copy the content to the clipboard.
  5. Return to Captivate and paste the code (Ctrl + V on Windows/command + V on the Mac) in the empty JavaScript window after the code already present in the window.

The JavaScript window associated with the On Enter event of slide 1 should now look like what's shown in the following screenshot:

The code you just added to...