0

我正在尝试对多个元素应用移动效果。他们一起移动,但我更喜欢顺序。

<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;
        }
    }   
}

感谢您抽出宝贵时间!

马克

4

1 回答 1

0

使用序列。更多信息在这里:http ://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fab.html

就像是

<s:Sequence>
   <s:Move />
   <s:Move />
</s:Sequence>
于 2011-11-02T18:49:21.163 回答