注释都是拼音 应该很简单的 可是最后一句。。。
maskme["blank"+i+j].gotoAndPlay(5); 后 mc就停在第5帧不动了
我又没Stop 为什么不播放了呢?
引用:
var lx,ly,rx,ry,w,h :Number // lx = leftX .....
var tempclip:MovieClip;
//test shu jv
lx = 200;
rx = 600;
ly = 200;
ry = 300;
// ding yi mc de gao he kuan
w = 20; // zuo you
h = 20; // shang xia
// gong duo shao ge fang ge
numx = Math.ceil( (rx - lx) /w );
numy = Math.ceil( (ry - ly) /h );
depth = 50;
// chuang jian kong mc
this.createEmptyMovieClip('maskme',0);
// sheng cheng jv zhen
for (var i = 1; i<=numx ; i++) {
for (var j = 1; j<=numy ; j++) {
tempclip = maskme.attachMovie("blank", "blank" + i + j , ++depth);
tempclip._x = lx + w /2 + (i-1) * w;
tempclip._y = ly + h /2 + (j-1) * h;
}
}
for (var i = 1; i<= ( numx + numy -1 ) ; i++) {
for (var j = (numx + numy - i); j >= 1 ; j--) {
if (( i<=numx ) and ( j<=numy )) {
maskme["blank"+i+j].gotoAndPlay(5);
}
}
} |
源文件见附件