You have to put stop on the timeline as a trigger for all label position A, B, C & D.
But along with that have code something like below:
for label B:
Similarly for other label positions as well.
So, better create 4 such flags like bPassA, bPassB, bPassC, bPassD, in the compositionReady event hanlder for the stage and set all to false like:
sym.bPassA = sym.bPassB = sym.bPassC = sym.bPassD = false;
and then control these flag to decide whether to pass those 4 objects or not.
I have uploaded the project here:
Only the clock, people and the monitor icons have click behaviors now. As a reminder, the goal is that when I click on an icon, I want it to rotate to the north position (choosing clockwise or counter-clockwise depending on which is the shortest route).
It's working on the first click with the monitor icon (by first click I mean after a screen refresh). But on first click with the clock where I am using playReverse, it plays to the next trigger and then and then does a play (not reverse). I think that is because it gets to the trigger and then I am issuing a play command instead of continuing the existing playReverse command. So instead of a play command at each trigger, I guess what I need is a "continue" action that just allows it to keep going. Is there such a thing?
Also, notice this: refresh, click the monitor and then click the monitor again. The first click should take it to the north position. Clicking again should just stay there but instead it goes to the home position.
Lastly, is there a way to render a type string on the page that just shows the current position (time and label)? Thanks,