How does the Well Dressed Ghost example work?

I’m trying to use some of the functionality from the Well Dressed Ghost example in a project but I can’t seem to figure out where it is storing the options and responding to button presses. The scripts attached to the various buttons are just goToNextFrame() scripts. It feels like there is another block of code doing the real work here - I just can’t find it. What am I missing?