Nicht das selbe, aber ggf. als weitere Anregung:
Ein MC aus einem Kreis erstellen, in der Bib. verknüpfen mit dem Exportnamen "mc", dann auf der Bühne löschen und folgendes AS auf das leere KeyFrame der Zeitleiste
PHP-Code:
anzahl = 5;
function gitter() {
for (i=1; i<=anzahl; i++) {
_root.attachMovie("mc", "mc"+i, 1000+i);
foo = _root["mc"+i];
foo._x = Math.round(Math.random()*(Stage.width-foo._width));
foo._y = Math.round(Math.random()*(Stage.height-foo._height));
if (i>1) {
_root.createEmptyMovieClip("linie", i);
with (linie) {
lineStyle(1, 0x000000, 100);
moveTo(_root["mc"+(i-1)]._x, _root["mc"+(i-1)]._y);
lineTo(_root["mc"+i]._x, _root["mc"+i]._y);
}
}
if (i==anzahl) {
_root.createEmptyMovieClip("linie", i);
with (linie) {
lineStyle(1, 0x000000, 100);
moveTo(_root["mc"+i]._x, _root["mc"+i]._y);
lineTo(_root["mc1"]._x, _root["mc1"]._y);
}
}
}
}
intervalId = setInterval(gitter, 500);