主题:  高手们,帮我看一下这几行代码

kuangflash

职务:普通成员
等级:1
金币:0.0
发贴:2
注册:2004/1/9 21:13:57
#12004/1/10 18:50:01
for (i in this.sprites) {
this.sprites[i].swapDepths(this.sprites[i]._y*screen_height+this.sprites[i]._x);
}

这几行代码什么意思?

swapDepths了用法?



UndeadCraft

职务:版主
等级:4
金币:10.0
发贴:1993
注册:2001/5/28 17:37:43
#22004/1/13 10:43:22
把this.sprites里的所有mc的depths交换成mc的_y*creen_height+这个mc._x
不知这样说你能不能懂


其实你traace 一下 this.sprites[i]就明白了
晕-_-!



tsahoo

职务:普通成员
等级:1
金币:0.0
发贴:70
注册:2002/12/25 12:15:33
#32004/1/13 15:11:48
一般用于游戏的遮蔽处理

比如:人从树前移到树后。