var basename = this._name.substr(0, this._name.indexOf("_") + 1);
var mynum = parseInt(this._name.substr(this._name.indexOf("_") + 1), 10);
if (this.getDepth() < 0) this.swapDepths(5000);
var iv = 0;
var max_anzahl = 30; // Anzahl Kopien
var interval = 300; // Intervall in Milisekunden
var alpha_setoff = 11; // Alphawert-Offset pro Kopie
var x_setoff = 20; // horizontaler Abstand
var y_setoff = 15; // vertikaler Abstand
var rot_spd = 5; // Rotationsgeschwindigkeit
var rot_spd2 = 2;
if (mynum < max_anzahl) {
iv = setInterval(function() { copyMe(); }, interval);
}
function copyMe() {
clearInterval(iv);
var newname = basename + (mynum + 1);
var nextCopy = this.duplicateMovieClip(newname, this.getDepth() - 1);
nextCopy._alpha = this._alpha - alpha_setoff;
if (nextCopy._alpha < 0) nextCopy._alpha = 0;
nextCopy._x = this._x
nextCopy._y = this._y
nextCopy._rotation = this._rotation + rot_spd2;
}
this.onEnterFrame = function() {
this._rotation += rot_spd;
}