This project demonstrate how to send a broadcast message to the stage. Click the "See Inside" button to look at the Stage code.
This simple program shows how to change the background when a sprite hits the edge. To test it, just drag the scratch cat to the edge and you should see the background rapidly changing.