Copy link to clipboard
Copied
Hi all, I am working on a project which has animate .oam file embedded in captivate, i control functions in captivate like navigation through javascript so if i click on an animate button it changes variables in captivate.
what i am trying to do in this instance is read a variable from captivate and have it hide or show an object on the animate html5 canvas as it loads.
here is what i have come up with, i know this is not right but trying to work out what i need to do
if window.parent.cpAPIInterface.getVariableValue("tick1") < 1)
{ this.Tick1.visible = false }
else
{ this.Tick1.visible = true }
thanks for any help
Have something to add?