2 Replies Latest reply on Nov 26, 2014 6:23 PM by randy@technologyskills

    change global variable from symbol

    randy@technologyskills Level 1

      Hi Everyone,

       

      I need help making changes to a global variable.  I set a variable up on the creationComplete using the code: sym.setVariable("information", 1);

       

      Later in the project I want to call up that variable and then increase the value on a button click. In the button symbol (onClick) I can call up the variable by using: var paragraph = sym.getComposition().getStage().getVariable("information");

       

      When I use an alert(paragraph), the proper value shows up.  But, on the click, I need to change the value of the stageComplete variable "information" to 2.

       

      Can anyone give me some guidance on what I'm not doing right?

       

      Thanks

      Randy