Forum Discussion

JesseTaber's avatar
6 months ago

Early Access for the Advanced JavaScript API

Storyline's current JavaScript API is, well, pretty lacking to put it politely. All you can really do with it is manipulate project variables. We've gotten lots of feedback that authors want to be able to do more with JavaScript in their courses, particularly the ability to reference and manipulate slide objects. Many authors resort to unsupported workarounds to accomplish what they want.

The new Advanced JavaScript API will allow authors to obtain references to their slide objects programmatically and manipulate various properties such as x/y position, rotation, scale, opacity, and depth / z-index. Additionally the new API exposes functions for obtaining mouse pointer position, and running code in the continuous animation loop that powers all course playback. These properties and functions unlock a whole new world of possibilities to create modern and immersive courses in Storyline 360. Our engineers have been having a lot of fun over the past couple of weeks testing and validating the new API internally. I put together a few quick examples of what's possible with this new API in this sample project: Review Link 

The first slide demonstrates the ability to make the arrow shape point in the direction of the mouse cursor. The second binds the rotation of the smiley face to the value of the slider variable. The third demonstrates usage of the native JavaScript animate function to translate the position of the rectangle and apply a blur effect. These are three fairly simple examples of what's possible with this new API; we're excited to see what our incredibly talented and creative customers will be able to create with it.

We have had this Advanced JavaScript API on our public roadmap for awhile now, and I'm excited to announce that we're nearly ready to invite some customers into an Early Access program to evaluate and provide feedback. If you're interested in being one of the first customers to experience this API let us know by filling out this interest form: Advanced JavaScript Early Access.

We'll be reaching out to interested customers over the next couple of weeks to invite them to the Early Access program once it's ready.

18 Replies