Forgot my own advice ! DONOT upgrade immediately.

Apr 10, 2024

And that is NEVER update Articulate Storyline immediately when Articulate sends an update. 
As they done it again. The latest update ( 3.86.32080.0 ) fails to work with older Javascript triggers. Downgrading to the version before it... ( 3.85 ) and all works properly again.

10 Replies
Math Notermans

The moment i try to edit the existing Javascript trigger Storyline crashes.

I test it when i have time with some other files.

PS: And maybe im mistaken in the version number...but the latest one. I got a message about updating yesterday and did it immediately. So not 3 weeks ago.

Jürgen Schoenemeyer

the new emphasize animations are solved with normal javascript in user,js, e.g.


function ExecuteScript(strId) {
  switch (strId) {
  case "5iJndnVgyvU": // trigger on timeline starts
      Script1();
    break;
  case "6NRem5OttDF": // trigger emphasize animation
      Script2();
      break;
  }
}

window.InitExecuteScripts = function () {
  var player = GetPlayer();
  var object = player.object;
  var addToTimeline = player.addToTimeline;
  var setVar = player.SetVar;
  var getVar = player.GetVar;

  window.Script1 = function () {
    console.log("hallo world");
  };

  window.Script2 = function () {
    const target = object("60g35ET153K");
    const duration = 750;
    const easing = "ease-in-out";
  const id = "6l0E5nUIcp0";
    const growAmount = 0.2;

    player.addForTriggers(
      id,
      target.animate([{ scale: `${1 + growAmount}` }], {
        fill: "forwards",
        duration,
        easing,
      })
    );
  };
};
Jürgen Schoenemeyer

the consequence is

  • that if you use javascript triggers and you have a script error, the emphasize animations will not work throughout the training
  • the script error message in the browser console can now be found differently
    -> at the very beginning, not when the script is used