JavaScript issue - error with setVariableValue
Specs:
Captivate 9.0.2.421
Publishing to SWF
Testing by publishing to server
Testing with latest Chrome
Problem code line:
window.cpAPIInterface.setVariableValue("urlparam1", "NotDefined");
If I add this with or without other code in the script window on a slide - it works fine.
If I try to add it anywhere in the standard.js file, the standard.htm file script block, or an external js file linked to standard.htm - it fails; Chrome console throws this error on that line:
Uncaught TypeError: Cannot read property 'setVariableValue' of undefined
Old programmer, but not as big on JS. I'm sure it's something stupid/minor, but I'm pulling out what little hair I have left. Thanks!
