我正在尝试对多个元素应用移动效果。他们一起移动,但我更喜欢顺序。
<s:Move id="thumbMover" target="{thumb}"/>
private function addItemThumbs ( ) : void {
for each ( var item : ItemVO in _items ) {
thumb = new Thumb;
thumb._item = item;
thumbMover.createInstance(thumb);
thumbMover.xFrom = stage.width;
thumbMover.yFrom = stage.height;
thumbMover.xTo = xValue;
thumbMover.yTo = yValue;
thumbMover.play();
addElement(thumb);
xValue = xValue + item.itemTnW + Config.getInstance().vBorderItm;
if ( xValue >= stage.width - item.itemTnW - 200 ) {
xValue = Config.getInstance().xValueItm;
yValue = yValue + item.itemTnH + Config.getInstance().hBorderItm;
}
}
}
感谢您抽出宝贵时间!
马克