问一个flash4 语法问题
//复制代码---------
depths += 1;
duplicateMovieClip("enemy_1", "monster" add depths, depths);
setProperty("monster" add depths, _x, 34);
setProperty("monster" add depths, _y, 160);
//运行代码
for (i=depths; i>depths-3; i--) {
enemy_x = eval("monster" add i)._x;
if (enemy_x<20) {
setProperty("monster" add i, _x,enemy_x+5)
//eval("monster" add i)._x+=5;
}
}
请教大虾,我的运行代码部分为何不起作用呢。请高手帮忙看看