Forum Discussion
change object state by JS
You said:
Each group connected to each other so when I click
on a certain point in the selection state, the rest of the points return to the normal state.
In the first place, you shouldn't use groups. Groups do not work well with triggers or states, and certainly will greatly complicate any js code.. Create whatever you need as a single graphic object, and you will be much happier.
Secondly, if all you are wanting is for the other objects to return to normal, SL has a built-in function that does that without any triggers. Select all the objects, right-click, and choose Button set. That makes them so that only one can be selected at a time, and if another is clicked, the first one changes to Normal state. Each object needs a Selected state, but absolutely no triggers.
Math is a very strong programmer. When he says something can be coded easily, it may take even him two or three tries to get it exactly as you want it. When he says something "possibly can be done", I think it will be a difficult and time intensive task for a very good programmer.
Thanks, for the smarts solution that's just what I need
Related Content
- 2 months ago
- 6 months ago