SCL™ Basics

When the ball is touched we want it to shake. First we need to detect the touch and set a routine to respond to the touch. Note that most systems will treat a touch (like a mobile device screen) the same as a mouse click. Therefore we'll use the 'click' event to handle this.

editable

click (case-sensitive!) is set on the sprite. When the sprite is touched or clicked, it will run the 'Touched" routine.
trace into will show the messaged indicated in the 'value' clause. The name following 'into' must be the id of an HTML <div> element.