layerA = new Layer
x: 259
y: 238
A = new Animation
layer: layerA
properties:
x: 100
opacity: 0.5
curve: "bezier-curve(0.25, 0.1, 0.25, 1)"
animationB = A.reverse()
# Alternate between the two animations
A.on(Events.AnimationEnd, animationB.start)
animationB.on(Events.AnimationEnd, A.start)
A.start()
网友评论