All pastes #412407 Raw Edit

Unnamed

public text v1 · immutable
#412407 ·published 2007-03-27 17:59 UTC
rendered paste body
var zaehler = 0;
var anzahl = 20;
var grad = 360;
var radius = 80;
var diff = grad/anzahl;
// 
holder._rotation = -90;
// 
this.createEmptyMovieClip("holder",45)
this.holder._x = 100;
this.holder._y = 200;
// 
function func() {
        // t = textfeld im MC
        // mit ausrichtung Mitte spielen
	holder.attachMovie("t", "t"+_root.zaehler, zaehler);
	holder["t"+zaehler]._x = radius*Math.cos(zaehler*Math.PI/180);
	holder["t"+zaehler]._y = radius*Math.sin(zaehler*Math.PI/180);
	holder["t"+zaehler]._rotation = zaehler;
	zaehler += diff;
	trace(zaehler);
	if (zaehler == grad) {
		clearInterval(intV);
	}
}
// 
// 
intV = setInterval(func, 100);