0
我有一只绵羊的movieclip符号(符号名称:“绵羊”)。这在整个屏幕上呈现出动画效果。在羊电影剪辑里面,有一些双腿在上下移动。当羊停止移动时,我想腿也停止动画。一旦父动画完成,停止从父级到子级动画片的动画
我试图从移动的函数内部访问腿:
function sheepMove6() {
var sheepMoveX6:Tween = new Tween (inst_sheep, "_x", Strong.easeOut, 900, 850, 10, false);
sheepMoveX6.onMotionFinished = function() {
sheep.leg1MoveY.stop();
}
}
我也试着检测动画从羊影片剪辑中整理:
_root.sheepMoveX6.onMotionFinished = function() {
leg1MoveY.stop();
}
这些似乎都没有阻止双腿移动,一旦羊达到目的地。我正在使用AS2。
- 编辑 -
不知道如何定位影片剪辑我已经尝试几种不同的方式来访问它的孩子,下面,还没有工作。注:leg1MoveY为补变量
_root.inst_sheep.inst_leg1.leg1MoveY.stop();
_root.inst_sheep.inst_leg1.stop();
_root.inst_sheep.stop();
_root.inst_sheep.inst_leg1.stop();
_root.inst_leg1.stop();
this.inst_sheep.inst_leg1.leg1MoveY.stop();
this.inst_sheep.inst_leg1.stop();
this.inst_sheep.stop();
this.inst_sheep.inst_leg1.stop();
this.inst_leg1.stop();
谢谢,文章非常有用 – Fisu 2013-02-14 09:03:14