Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 20-12-2005, 17:25   #1 (permalink)
1x1
 
Registriert seit: Aug 2005
Beiträge: 255
Question movieclip.prototype onRelease deleten

guten abend zusammen,

wie kann ich einen movieclip.prototype onRelease deleten so das die mouse events wieder "frei" gegeben sind? (also anstatt das mouse hand symbol soll der normale mouse zeiger angezeigt werden)

ich hoffe mir kann jemand weiterhelfen!

grüße,
icon
Angehängte Dateien
Dateityp: zip del on rea ff.zip (3,1 KB, 3x aufgerufen)
icon ist offline   Mit Zitat antworten
Alt 20-12-2005, 17:31   #2 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Hallo!
In deinem Beispiel einfach so:
PHP-Code:
delete kreis.onPress;
delete kreis.onRelease
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager ist offline   Mit Zitat antworten
Alt 20-12-2005, 18:31   #3 (permalink)
1x1
 
Registriert seit: Aug 2005
Beiträge: 255
super, in dem ersten beispiel hat das schon mal gut funktioniert.

allerdings war das nur eine "abgespeckte" version und in der originalen (eigentlich nur unwesentlich grösser) funktioniert das mit dem "delete kreis.onRelease;" leider nicht.

wäre nett wenn sich jemand die angehängte original version mal anschauen könnte.
habs leider nicht selber hinbekommen. liegt sicher einfach nur am brett vorm kopf!

viele grüße,
icon
Angehängte Dateien
Dateityp: zip del on rea ff 2.zip (3,5 KB, 9x aufgerufen)

Geändert von icon (20-12-2005 um 23:26 Uhr)
icon ist offline   Mit Zitat antworten
Alt 21-12-2005, 07:42   #4 (permalink)
1x1
 
Registriert seit: Aug 2005
Beiträge: 255
frage nicht verständlich oder warum kann mir niemand helfen?

grüße,
icon
icon ist offline   Mit Zitat antworten
Alt 21-12-2005, 08:38   #5 (permalink)
Freak
 
Benutzerbild von Silicone
 
Registriert seit: Dec 2005
Beiträge: 29
Ich weiß jetzt nicht, ob es das ist, was du suchst, aber versuch mal diesen Code

Code:
MovieClip.prototype.drag = function() {
	this.i = 0;
	this.ease = 4;

	//
	this.onRollOver = function() {
		this.play();
		// nach 1,5 sek. deleten
		if (!(this.rolledOver)) {
			var clearRollOver = function (kreis) {
				clearInterval(kreis.clrIntvl);
				delete kreis.clrIntvl;
				delete kreis.rolledOver;
				delete kreis.stopDrag(false);
				delete this.stopDrag;
				this.gotoAndStop(1);
				trace("btn.onRollOver deleted!");
			};
			this.rolledOver = true;
			this.clrIntvl = setInterval(clearRollOver, 1500, this);
			trace("btn.onRollOver!");
			delete this.onEnterFrame;
		}
		//
		kreis.startDrag(true);
		delete this.startDrag;
		this.swapDepths(1);
		//
		this.onEnterFrame = function() {
			if (this.i == 0) {
				this.oldX = _xmouse;
				this.i++;
			}
			this.newX = _xmouse;
			this.verschil = this.newX-this.oldX;
			this._rotation += (this.verschil-this._rotation)/this.ease;
			this.oldX = this.newX;
		};
	};
	// drag zustand verlassen
	this.onRollOut=function () {
		kreis.stopDrag();
		this.gotoAndStop(1);
		this.onEnterFrame = function() {
			this._rotation += (0-this._rotation)/this.ease;
			if (Math.abs(this._rotation)<0.1) {
				this._rotation = 0;
				delete this.onEnterFrame;
			}
		};
	};
	this.onRelease = function () {
		kreis.stopDrag();
		//weg mit dem Dreck ;-)
		//+++++++++++++++++++++++++++++++
		delete this.onRollOver;
		delete this.onRelease;
		delete this.onRollOut;
		//+++++++++++++++++++++++++++++++
		this.gotoAndStop(1);
		this.onEnterFrame = function() {
			this._rotation += (0-this._rotation)/this.ease;
			if (Math.abs(this._rotation)<0.1) {
				this._rotation = 0;
				delete this.onEnterFrame;
			}
		};
	};
};
kreis.drag();

Gruß,
Silicone
Silicone ist offline   Mit Zitat antworten
Alt 21-12-2005, 13:28   #6 (permalink)
1x1
 
Registriert seit: Aug 2005
Beiträge: 255
Thumbs up

funktioniert jetzt! vielen dank!

schöne grüße,
icon
icon 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 01:32 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele