Your first flow
A flow connects the timeline's states: the state the file starts in, and what takes it from one state to another. Here a switch goes On when it is clicked and Off on the next click. The canvas is the flow's live preview, so you can try it as you build it.
Step by step
Put the first state on the chart
In the State machine workspace, drag Off from the left panel's States onto the chart. The first state makes the flow, Main, and the flow starts in it (tagged Start). Its editor opens: how it plays, its direction, what makes it leave.
Add the next state
Drag On onto the chart, to the right of Off. A state the flow doesn't use yet is greyed in the list; drag a box to move it on the chart.
Connect them
Drag from the dot at Off's right edge to On. The arrow is an interaction: what takes the flow from Off to On. It starts as When?, dashed, until you say what makes it happen.
Say when
In the interaction's editor, open When and pick Click. A pointer When also has on: anywhere, or one layer. Go to is where it leads, by a Cut or a Blend.
Add the way back
Drag from On's dot to Off and pick Click as its When, so each click turns the switch the other way.
Try it
Click the switch on the canvas. The LIVE bar says which state plays, the chart marks its box, and the right panel's What happened lists each step. ↺ starts the flow again.
Keys
| Esc | Close the editor |
| Del | Remove what is picked |
| Space | Start the preview again |