Captivate Javascript ChangeState
Hello,
I have a problem with changeState in Captivate and hope you can help me. I have 2 Images as buttons. Every button has 3 States, a normal, clicked, and done and I am trying to change the state of them.
When a button is clicked so it's variable gets +1 and when you click again it get's -1. The idea is when I click on button 1 I want to check via Javascript if button 2 == 1 if yes then it should change the state to Done. Unfortuantley, it doesnt work. Here my code:
if(zug_state_2== 1){
zug_state_2= 0;
cp.changeState("img_1_sifa","Done");
}
