Press

Code Actionscript 2.0

Instance action

on (press) {
_alpha = 10;
}

Code Actionscript 3.0

addEventListener(MouseEvent.MOUSE_DOWN, press); function press(e:MouseEvent) { square.alpha = 0.1; }

Description

When the mouse clicks on the square, its opacity alpha is reduced to 10%.

Download

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


Share