NEU: Alle Visual Codes als Code Snippets für Flash CS5:
jetzt hier downloaden .

Kombinationen

Code Actionscript 2.0

Instanz-Aktion

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; }

Infos

Dieses Skript ändert schrittweise die horizontale und vertikale Position x und y, die Deckkraft alpha, sowie die Rotation. In der Bewegung werden alle diese Eigenschaften kombiniert.

Download

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


Share