JavaScript not getting active, why?
Nov 11, 2013
Dear Heroes,
How are things? I hope they are all right. Now I am working on a new project using a JavaScript so that a selfmade platform, non-SCORM compliant, can track my slides and trigger a diploma afterwards.
I added a trigger to Execute Java script, Aulapp.iniciar_tracking_pag(1); When Timeline starts, Object Portada, Frontcover. I tried those triggers using my browser but I have no response, the Java does not become active...I even tried setting the trigger with objects on the slide...Same outcome, nothing...Do you have any ideas on what I am doing wrong?
Regards, Ernesto.
7 Replies
Hi Ernesto:
You have not provided many details about what your JS file is doing, therefore, we can only help you by using examples as follows:
Example.js file might have the following code:
function getvar {do something and output a something to getvar}
You will need to include this .js file, or embed the function in script tags in your story html file.
In your story file, you will then need to call that function in the Javascript trigger.
Real-world examples can be found here: http://www.popular-networking.com/project/template/story.html
Best Regards,
Dennis Hall
Looks like you're running locally. The Flash player will block local interactions between the player and the browser unless you add the location to the whitelist using the Flash Player Security Settings Manager to add the folder to the sandbox.
Here's where you'd add the folder to get your triggers to go through to the browser:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Thanks for popping in to help Ernesto out here
Thanks heroes! Yes , you are totally right, it all works fine! Ernesto
Dennis and Steve,
I shall like to thank you again for sharing your knowledge and being so swift about our queries. Best regards, Ernesto.
Thanks for the update Ernesto! Glad that you were able to get the assistance that you needed
This discussion is closed. You can start a new discussion or contact Articulate Support.