Neler yeni

Yeni mesajlar Yeni konular En çok mesaj En çok tepki En çok görüntülenen

Yukaridan akan sivi, actionscript 2 ile

siir-delisi

🏅Acemi Tasarımcı🏅
Katılım
28 Şub 2011
Mesajlar
80
Tepkime puanı
0
https://s1.directupload.net/images/110706/bcjzi8zl.swf

Flash actionscipt 2 ile acin

Birinci frame gelin ve f9 tiklayin

Buraya ekleyin ve

Kod:
createEmptyMovieClip("renk", 1000);
punktListe = new Array();
clipID = new Array();
anzahl = 20;
breite = Stage.width
for (i=0;i < anzahl;i++) {
	x = ((breite / (anzahl - 1)) * i);
	punktListe[i] = {x:x, y:20, tx:x, ty:0, vy:(Math.random() * 0.8) + 0.1};
	clipID[i] = {x:0, y:0};
}
onEnterFrame = function () {
	for (i=0;i < anzahl;i++) {
		punktListe[i].vy = punktListe[i].vy + ((Math.random() * 0.1) - 0.05);
		if (punktListe[i].vy < 0) {
			punktListe[i].vy = 0;
		}
		punktListe[i].y = punktListe[i].y + punktListe[i].vy;
		clipID[i].x = (punktListe[i].x + punktListe[i + 1].x) / 2;
		clipID[i].y = (punktListe[i].y + punktListe[i + 1].y) / 2;	
	}
	renk.clear();
	renk.beginFill(0xff0000, 100);
	renk.moveTo(punktListe[0].x, punktListe[0].y);
	renk.lineStyle(1, 0, 100);
	for (i=1;i < (anzahl - 2);i++) {
		renk.curveTo(punktListe[i].x, punktListe[i].y, clipID[i].x, clipID[i].y);		
	}
	renk.curveTo(punktListe[i].x, punktListe[i].y, punktListe[i + 1].x, punktListe[i + 1].y);
	renk.lineTo(breite, 0);
	renk.lineTo(0, 0);
	renk.lineTo(punktListe[0].x, punktListe[0].y);
};

Ekledikten sonra STRG+Alt+Enter basip deneyin.
 

Benzer konular

Üst