| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Mar 2004
Beiträge: 50
| drehung mit doppelklick
kann mir jemand helfen? wie muss man dieses AS schreiben dass es auf doppelklick reagiert, also dass wenn man mit einem doppelklick auf das logo_mc klickt mann es drehen kann, und bei einem einfachen klick nichts passiert.?? logo_mc.leseMausRotation = function() { var x = this._parent._xmouse-this._x; var y = this._parent._ymouse-this._y; return Math.atan2(y, x)*180/Math.PI; }; logo_mc.positionzurMaus = function() { this._letztedrehung = this._rotation; this._rotation = this.leseMausRotation()-this._clickrotation; }; logo_mc.doubleClick = function () { this._clickrotation = this.leseMausRotation()-this._rotation; this.onEnterFrame = this.positionzurMaus; }; logo_mc.onRelease = logo_mc.onReleaseOutside=function () { this.drehTempo = this._rotation-this._letztedrehung; if (this.drehTempo>180) { this.drehTempo -= 360; } else if (this.drehTempo<-180) { this.drehTempo += 360; } this.onEnterFrame = this.drehen; };
__________________ Carpe Mortem In Nomine Nosferatu Rex |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |