Skip to main content
craigs8411935
Participating Frequently
December 12, 2017
Question

captivate variable affecting objects in animate cc

  • December 12, 2017
  • 0 replies
  • 174 views

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

This topic has been closed for replies.