function mc_p(mc:MovieClip, n:Number) {
var i:Number = 0;
var Tot:Number = mc._totalframes;
var Cur:Number = mc._currentframe;
function myF() {
Tot = mc._totalframes;
Cur = mc._currentframe;
if (Cur == Tot) {
i++;
trace(i);
}
if (i>=n) {
mc.stop();
mc._visible = false;
mc.swapDepths(0);
mc.removeMovieClip();
clearInterval(id);
}
}
var id = setInterval(myF, 100);
}
mc_p(mc_mc, 3);
var i:Number = 0;
var Tot:Number = mc._totalframes;
var Cur:Number = mc._currentframe;
function myF() {
Tot = mc._totalframes;
Cur = mc._currentframe;
if (Cur == Tot) {
i++;
trace(i);
}
if (i>=n) {
mc.stop();
mc._visible = false;
mc.swapDepths(0);
mc.removeMovieClip();
clearInterval(id);
}
}
var id = setInterval(myF, 100);
}
mc_p(mc_mc, 3);
回复Comments
作者:
{commentrecontent}