не получается ...
я правда немного не так написал..
вот код...

Код:
var nebo:Array =["st1","st2","st3","st4","st5","st6","st7","st8","st9","st10"];
for(i=0;i<10;i++){
attachMovie("st","st"+i, i,{_x:1+Math.random()*500,_y:1+Math.random()*400})
nebo[i]=this["st"+i];
}
onMouseDown=function(){
nebo.push("st"+i);
attachMovie("st","st"+i,++i,{_x:1+Math.random()*500,_y:1+Math.random()*400})
_root["st"+i].gotoAndStop (Math.round(Math.random()*2));
nebo.shift(0);
trace(["st"+i]);
}