However, my scripts fail the moment I use GetVar or SetVar.
var player = GetPlayer();
document.bgColor = "#009900";
var mynewvalue = 10;
document.bgColor = "#990000";
The code above triggers when a slider moves. I'm changing the background colour of the document to help me debug.
When I slide the slider, the background colour of the page turns green so GetPlayer is fine but SetVar isn't.
Because the background colour is changing as expected, I assume the issue must lie with my code.
I can't see anything wrong with my code so I'm hoping somebody with eagle-eyes can spot it for me!