codice:
function makeLvl(posx, posy, dim, newname, nrdot, livello) {
_root.depth++;
duplicateMovieClip(_root.bolla, ["bolla"+_root.depth], _root.depth);
nomebol =_root["bolla"+_root.depth].dot._x;
_root["bolla"+_root.depth]._x = posx;
_root["bolla"+_root.depth]._y = posy;
_root["bolla"+_root.depth]._xscale = dim;
_root["bolla"+_root.depth]._yscale = dim;
if (nrdot.length>1) {
rot = 360/nrdot.length;
}
_root.depth++;
for (indice=0; indice<nrdot.length; indice++) {
duplicateMovieClip(_root["bolla"+_root.depth].dot, newname+indice, _root.depth);
trace(_root["bolla"+_root.depth].dot);
_level0[newname+indice]._x = posx;
_root[newname+indice]._y = posy;
_root[newname+indice].atom._x = dim/2;
_level0[newname+indice]._rotation = rot*indice;
_root[newname+indice].atom.testolink.nomelink = nrdot[indice];
_root.depth++;
}