Multipress

Code Actionscript 2.0

Instance action

on (press) {
// grows each time, when pressed
_xscale = _xscale * 1.1;
_yscale = _yscale * 1.1;
}

Code Actionscript 3.0

square.addEventListener(MouseEvent.MOUSE_DOWN, press); function press(e:MouseEvent) { // grows each time, when pressed square.scaleX = square.scaleX * 1.1; square.scaleY = square.scaleY * 1.1; }

Description

Every time the mouse clicks on the square, its size expands by 1.1 times.

Download

Right click: Flashfile AS 2.0 | Flashfile AS 3.0 | SWF-File


Share