Noob problem...moving a mc in As3

Im starting programming.

Can someone say how can i move a MC that is in stage with x=20 to x=50, and when this finish start moving another MC (MC1) whit y=20 to y=50.

Its a good example to understant the listener command in as3.

Thanks a lote