How do I Change instance variables with JavaScript

0 favourites
  • 1 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hi,

    I've posted this elsewhere as I wasn't sure where and who to ask. So sorry if you have read this already.

    I am using the Browser plugin to send and get data from an Adobe Captivate slide. The code I am using to set the data from the Captivate FO1 variable is correct as I have used it before. The get should be working also its the C2 instance variable object property I am unsure about. I'd appreciate some help with this.

    Here is the example code. The set is working but the get isn't showing up.

    "window.parent.cpAPIInterface.setVariableValue('FO1',1);";;;;;;;;;;;;;This works fine

    "this.runtime.textmmm.V1 = window.parent.cpAPIInterface.getVariableValue('FO2');";;;;;;;;;;;;;This isn't working at all.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)