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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Articulate Storyline

You're reading from   Mastering Articulate Storyline Learn how to push Articulate Storyline to its limits and create breath taking stories by deepening your understanding of the product's capabilities!

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781783550913
Length 288 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Before You Begin 2. Refresher of Key Concepts FREE CHAPTER 3. Creating a Content-Rich Story 4. Engaging Your Learners with Interactivity 5. Using Variables, Conditions, and JavaScript 6. Assessing Learners 7. Preparing to Publish Your Story 8. Becoming More Creative 9. Streamlining Your Development

Practical uses for JavaScript in Storyline


The following sections will teach you how JavaScript works in Storyline.

Generating a word count

Word count calculators are a great way of ensuring that your learners aren't creating too much work for you when it comes to evaluating short or long answer responses. By specifying a word count, you can guide your learners to the desired length of response you expect to receive.

In Storyline, you can use variables and JavaScript to easily create a word count calculator.

Exercise 5

Let's take a look at Exercise 5. In this exercise, you will learn how to use text and number variables, in collaboration with JavaScript, to create a word count calculator. Please note that in your Manage Project Variables panel, you will notice additional variables; these variables are associated with the After example and will have the prefix AFTER. For ease of use, download JavaScript1.txt and copy/paste the script into the Storyline Script field.

In your exercise scene, you...

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