Question
Changing obect states with JS
I found this function elsewhere on the forum:
cp.changeState("currentState,"newState");
So if my current state is "Normal" (Default) and the new state is called "Chosen" - I assume I can just add Javascript to a button with the line:
cp.changeState("Normal","Chosen");
And this should change the state on button click.
But this doesn't seem to work. Could somebody explain where I'm going wrong?
