All pastes #288882 Raw Edit

Miscellany

public text v1 · immutable
#288882 ·published 2006-12-22 17:57 UTC
rendered paste body
this.createEmptyMovieClip("viereck", 1);
viereck.beginFill(0x000000, 100);
viereck.lineStyle();
viereck.lineTo(100, 0);
viereck.lineTo(100, 100);
viereck.lineTo(0, 100);
viereck.endFill();
viereck._alpha = 0;
viereck.onEnterFrame = function() {
	trace("alpha++ ausfuehren");
	this._alpha += 10;
	if (this._alpha>=100) {
		delete this.onEnterFrame;
		myInt = setInterval(time, 5000);
	}
};

function time() {
	onEnterFrame = function () {
		trace("alpha-- ausfuehren");
		_alpha -= 10;
		if (_alpha<1) {
			delete this.onEnterFrame;
			clearInterval(myInt);
		}
	};
}