|


Macromedia Flash MX
Circle Rotation Depending on Mouse Position +
Clip
| Source
The ActionScript Snippet
onClipEvent (load) {
// set parameters:
// amplify the speed
var k = 0.03;
}
onClipEvent (enterFrame) {
// loop:
// recalculate the rotation
this._rotation = this._rotation-k*(_parent._xmouse-this._x);
}
© 1998-2008
Martin Vögeli. Für Inhalte und Links werden keine Verantwortung
übernommen.
martinvoegeli@gmx.ch
| +41 76 505 8 503 | birdy1976.com
| elearning.zhaw.ch
|