Rotate

Code Actionscript 2.0

Instance action

onClipEvent (load) {
this._rotation = 0;
}

onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}

Code Actionscript 3.0

addEventListener(Event.ENTER_FRAME, enterFrame); function enterFrame(event:Event) { square.rotation = square.rotation + 2; }

Description

With this script, the angle of the square is rotated incrementally. This causes the square to rotate continuously.

Download

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


Share