onEnterFrame = function () { n = random(20); if (n>=1 && n<=3) { if (_root["pig" add n].isUp<>true) { _root["pig" add n].gotoAndPlay(2); } } };