Can I call a Javascript function on the Slide Master from a slide

I have a trigger attached to the slide start timeline event on the Slide Master. the trigger "executes" a Javascript function.

function sayIt (message){
alert(message);
}

On one of the content slides I have a graphic that also has a trigger set to the start timeline event for that graphic

sayIt("this is the message")

But the alert message never appears.

I noticed the two javascript calls are encapsulate into other functions (script1 and script2) within the user.js file that Storyline creates. Do I need to move my function outside of this wrapper?

3 Replies