
Код:
function gR() {
return {x:Math.round(_root.mcR.mcO._x+Math.random()*_root.mcR.mcO._width), y:Math.round(_root.mcR.mcO._y+Math.random()*_root.mcR.mcO._height)};
}
function pMc() {
var r2 = gR();
while (!_root.mcR.mcO.hitTest(r2.x, r2.y, true)) {
r2 = gR();
}
var mc2 = _root.mcR.attachMovie('bl', 'bl'+i2, i2++);
mc2._x = r2.x;
mc2._y = r2.y;
}
var i2 = 100;
tmr1 = setInterval(pMc, 1);
Не пойму почему виснет...