Sorry, hier wird Flash 8 benötigt...

Sonntag, 11. Februar 2007

Übungsaufgabe 4

Es soll eine interaktive Animation erstellt werden. Dabei bietet es sich an, kleine Actionscripte wie etwa
onClipEvent (enterFrame) {
this._x += (_root._xmouse-this._x)/4;
this._y += (_root._ymouse-this._y)/4;
}

zu nutzen, um MovieClip-Instanzen auf der Bühne in Laufzeit (also 'onEnterFrame') relativ zur Position des Maus-Cursors (also z.B. '_root._xmouse') zu animieren.
Eine Beispieldatei findet Ihr z.B. hier.

Keine Kommentare: