function onCreated() { this.image = "block.png"; setTimer( 0.05 ); } function onTimeout() { this.x += 0.01; setTimer( 0.05 ); }