hi Marco,
the two transitions are in conflict that’s why only one is executed
transition.to is good only for linear transitions, i.e, move from point (x1,y1) to (x2,y2) in a straight line
you must have an enterframe listener and with that you will control both the x and y values.
for a full sine curve the formula is y=y0+a*sin(2?x/L), where ?=math.pi, y0 is the initial y value of the object, a is the amplitude (how far along the y axis you want the object to oscillate) and L is the distance along the x-axis that you want the object to move (stage width minus or plus the width of the object), and x is the x coordinate.
divide the width of the screen by n (number of steps), that will be your dx
in the enterframe listener make x increase by dx at each step, and y according to the formula above (y0, a, ?, and L are constants, only x and y change) [import]uid: 6459 topic_id: 2054 reply_id: 6062[/import]