Javascript Function Calls

Hello all, I have a question on JS and SL2

1. I am using Steve's "Using WebObjects to "carry on" lots of files" (Link).
I want to call a function from my external JS. I set a trigger to fire on timeline start. In the code window I have

var player = GetPlayer();
alert("SSSSS");// Just to make sure JS is working -- All good ;)
player.FRED();// inside of FRED is an alert("Hello World");

So I pub the course and look in the folders and all is good.
The first alert fires but not FRED.  Any ideas

Thanks

B

2 Replies
Christie Pollick

Hi, Bobby -- Thanks for your question! Just thought I should stop in to note for anyone who is considering using JS as an option, unfortunately, we are not able to provide support for JavaScript coding. Luckily, we have lots of community members who are more than willing to share their expertise to assist!

And here is a sheet on JavaScript Best Practices in case you'd like to take a look. :)