Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 29-11-2004, 15:21   #1 (permalink)
Neuer User
 
Benutzerbild von Aterrosa
 
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
Aterrosa ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 04:13 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele