onEnterFrame = function () { mc1._x += 5; mc2._y -= 5; if (mc1.hitTest(mc2)) { trace("ok"); delete onEnterFrame; fscommand("quit", ""); } };