我想做一个movieClip,它引用了另一个电影剪辑的移动。但是当我这样做时,它保持不动。这是我正在尝试做的示例代码
var movieClip1 = new movieClip();
var movieClip2 = new movieClip();
movieClip1.ref = movieClip2;
movieClip1.x = 0;
movieClip2.x = 0;
addChild(movieClip1);
addChild(movieClip2);
while(movieClip1.x !=300){
movieClip1.x +=1;
// i want to make the reference of the clip move as well
movieClip1.ref.x = movieClip1.x;
}