Book Image

Mastering Articulate Storyline

By : Ashley Chiasson, Jeffery Batt
Book Image

Mastering Articulate Storyline

By: Ashley Chiasson, Jeffery Batt

Overview of this book

Storyline is a powerful e-learning authoring tool that allows you to take your creativity to the next level. However, more often than not, projects don't require such complex interactions, leaving Storyline's full capabilities untapped. This book will provide you with the information you need to take your Storyline development up a notch by leveraging the full suite of possibilities Storyline has to offer. You will be provided with a refresher of the key concepts before we take you deep into the exciting world of enhanced interactivity, variables, and even some JavaScript—oh my! With downloadable activities, you can either follow along and compare your output, use the activities as they are, modify the activities to suit your own needs, or reverse-engineer the activities to better understand how they were developed.
Table of Contents (15 chapters)
Mastering Articulate Storyline
About the Author
About the Reviewers

Fun uses for JavaScript in Storyline

The following sections will teach you about the fun uses of JavaScript in Storyline.

Generating a random number

Generating a random number may not be the most practical use for JavaScript in Storyline for educational purposes, but it has the potential to be useful and it's pretty easy to pull off.

For ease of use, download JavaScript7.txt and copy/paste the script into the Storyline JavaScript field.

To achieve this effect, you will first want to design your slide. Here, we have a text prompt for the learner and a button, which will execute the JavaScript:

Next, access the Manage Project Variables panel and add a new variable with the following parameters:

  • Name: randnum

  • Type: Number

  • Value: 0

Now that we have our variable created, we need to add a reference to the variable. This has been added next to the button:

Finally, we will add a trigger to the button that will execute the JavaScript needed to generate the random number. Add a new trigger to the...