0

我的问题是我的影片剪辑内的随机位置有一些影片剪辑实例parent,我希望能够parent通过移动父影片剪辑以特定顺序将这些影片剪辑中的每一个带到舞台中心。

我面临的问题是,一旦我将parent电影剪辑移动到舞台上的第一个孩子的中心,我如何继续通过移动来让下一个孩子在舞台上居中parent

我希望能够通过 actionscript 做到这一点。

希望我的问题很清楚。

4

2 回答 2

0

if i was you i would center the parent on the stage, and then iterate through the children withing the parent, and center each one within the parent. then you would have both the parent and the children centers on the stage. you don't need to keep track of positions at all with this approach.

于 2012-06-30T00:44:35.170 回答
0

When placing your movieclips randomly, register in an array their positions, and move the parent calculating the differences between their coordinates

于 2012-06-29T12:39:55.387 回答