Custom Handlers: Review and practice
Back to Multimedia Daily Schedule
Open a new movie. Save it as "custom1.dir."
1) Create five short sounds, a rectangular sprite, and five circular sprites.
2) Create a new behavior script by clicking the gear on the toolbar and clicking the plus sign to choose New Behavior, name it mouseclick. In the script window type the following:
3) Drag and drop this script on the five circular sprites on stage.
3) Create a new movie script, choose Window>Script: Name this script "crazyclick."
In the script create a linear list of five sounds. Make the width and height change of a rectangular sprite on stage and have a random sound play each time the user clicks one of five different circular sprites on stage.