Swirl Text

Matthias Kannengiesser

Erfahrenes Mitglied
Hi Folks,

Habt Ihr euch schon immer nach einem Swirl Text gesehnt.

PHP:
function initSwirl () {
	text = "Wir sind das Flashstar Duo   ";
	x = 300;
	y = 200;
	zaehler = 0;
	i = 0;
}

function swirl (xSkal,ySkal,aWert,cGrenze) {
	zyklus = zaehler%3;
	if (zyklus == 0) {
		attachMovie("zeichen", i, i);
		_root[i]._alpha = 100;
		_root[i].mc.phalter = text.charAt(i%text.length);
		i++;
	}
	
	for (j=0;j<i;j++) {	
		_root[j]._rotation -= 3.6;
		_root[j]._x = x;
		_root[j]._y = y;
		_root[j]._xscale *= xSkal;
		_root[j]._yscale *= ySkal;
		_root[j]._alpha *= aWert;
		removeMovieClip (_root[j-cGrenze]);		
	}
}

Beispiel:
Swirl

FLA in kürze auf flashstar.de.
Übrigens mit externen Text läßt sich das ganze auch betreiben. :)

Be inspired...

mfg
Matze K.
 
Zurück