Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Adobe Captivate 2019

You're reading from   Mastering Adobe Captivate 2019 Build cutting edge professional SCORM compliant and interactive eLearning content with Adobe Captivate

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher Packt
ISBN-13 9781789803051
Length 770 pages
Edition 5th Edition
Arrow right icon
Authors (2):
Arrow left icon
Dr. Pooja Jaisingh Dr. Pooja Jaisingh
Author Profile Icon Dr. Pooja Jaisingh
Dr. Pooja Jaisingh
Damien Bruyndonckx Damien Bruyndonckx
Author Profile Icon Damien Bruyndonckx
Damien Bruyndonckx
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Getting Started with Adobe Captivate 2019 FREE CHAPTER 2. Working with Standard Objects 3. Working with Multimedia 4. Working with the Timeline and Other Useful Tools 5. Developing Interactivity 6. Crafting the Graphical Experience with Styles and Themes 7. Working with Quizzes 8. Capturing Onscreen Action 9. Producing a Video Demo 10. Creating a Responsive Project 11. Creating Virtual Reality Projects 12. Using Captivate with Other Applications 13. Creating Accessible eLearning 14. Variables and Advanced Actions 15. Finishing Touches and Publishing 16. Other Books You May Enjoy

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image