Add space-bar keycode handler for role=button elements. Move continue/replay actions into reusable functions.
Define sources as a shared variable so they can be passed directly to the SWF player. Set SWF location.