flash 影片 深度

来源:百度知道 编辑:UC知道 时间:2024/05/17 22:36:25
我有9个影片剪辑,在同一个图层!
我把鼠标指到一个剪辑上,这个剪辑就在最顶层显示。
这个AS应该怎么写列,谢谢啊!

用as3
给9个影片剪辑都起上名字比如从mc1...mc9
for(var i:int=1;i<=9;i++){
this["mc"+i].addEventListener(MouseEvent.ROLL_OVER,mcOver);
}
function mcOver(e:MouseEvent){
this.setChildIndex(e.currentTarget,this.numChildren-1);
}
如果有问题,给我百度留信息!