Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

captivate variable affecting objects in animate cc

Community Beginner ,
Dec 12, 2017 Dec 12, 2017

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

160
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Help resources