Best way to change the state of a large number of smart shapes
Hi all,
I have 30 smart shapes on my page, and I need to change each of them independently to one of three different states, based on a value assigned to variables in java script.
Right now my plan is to create 60 conditional tabs, 2 for each shape, with the first tab being:
if myVar1 is equal to A then change state of myshape1 to stateA
And the second tab being:
if myVar1 is equal to B then change state of myshape1 to stateB
Else change state of myshape1 to stateC
Is there a more efficient way to change the state of a large number of shapes than to use so many conditional tabs? I'd love to have cp.changestate work but when I use it in JS as cp.changestate("myshape1","stateA"); and publish to html5 all subsequent JS in the script window stops executing so I suspect it is not supported by my browser/captivate version somewhere?
