Adobe Flash Simples Script zum Malen hat Bug

hertzchen

Aktives Mitglied
Thread Starter
Dabei seit
20.09.2004
Beiträge
2.000
Reaktionspunkte
21
Code:
var target=_root;
target.lineStyle(1, 0x89B138, 75);
target.onMouseDown=function() {
	this.moveTo(this.xmouse, this._ymouse);
	this.draw=true;
}
target.onMouseUp=function() {
	this.draw=false;
}
target.onMouseMove=function() {
	if (this.draw) {
		this.lineTo(this._xmouse, this._ymouse);
		updateAfterEvenet();
	}
}

das Ergebnis kan man hier sehen: http://www.apfelplusz.de/2007/01/11/mal-mal/

nur bin ich zu blöd dafür, das jetzt so anzupassen, dass man nicht diesen ersten waagerechten Strich hat :-(

wie kann ich das abstellen (schnell und simpel) abstellen?

Danke :)
 
Code:
var target = _root;
target.lineStyle(1, 0x89B138, 75);
aaa = true;
target.onMouseDown = function() {
	this.draw = true;
	aaa = false;
};
target.onMouseUp = function() {
	this.draw = false;
};
target.onMouseMove = function() {
	if (aaa == true) {
		this._x = _xmouse;
		this._y = _ymouse;
	}
	if (this.draw) {
		this.lineTo(this._xmouse, this._ymouse);
		updateAfterEvenet();
	}
};
 
Zurück
Oben Unten