Combinations

Code Actionscript 2.0

Instance action

onClipEvent (load) {
this._y = 30;
this._x = 30;
this._alpha = 0;
this._rotation=0;
}
onClipEvent (enterFrame) {
this._y = this._y + 2;
this._x = this._x + 4;
this._alpha = this._alpha + 1;
this._rotation=this._rotation-4;

}

Code Actionscript 3.0

addEventListener(Event.ENTER_FRAME, enterFrame); square.y = 30; square.x = 30; square.alpha = 0; square.rotation=0; function enterFrame(event:Event) { square.y = square.y + 2; square.x = square.x + 4; square.alpha = square.alpha + 0.01; square.rotation= square.rotation-4; }

Description

This script modifies the horizontal and vertical position x and y, the opacity alpha and the rotation step by step. The resulting movement combines each of these properties.

Download

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


Share