[FMX]Timing AS

Hey all, ive always browsed kirupa forums but never actually been a member(a sin?). Thought its time for me to break into the scene so to speak.

I have a question for all the uber flash gurus out there and i have tried searching the forums for my answer but i wasnt actually sure what i should be looking for. I was wondering if there is anyway to pause between lines of code.

The situation i am in at the moment, i am building a small portfolio for my multimedia class and skill level is above everyone else in the class and i think the lecturers were just expecting some easy motion tweens and working buttons but i decided to make it a bit of a project to build a whole new portfolio using as much actionscript as i could.

I have built prototype functions for moving an MC on x axis and y axis with easing. Simple enuff but i cant work out how do one after the other.


on(release) {
_root.box.moveX(200, 2);
_root.box.moveY(200, 2);
}

Nothing happens if i have both in the button, i was thinking that i could do a loop and just check where the object that i am moving is at but thought that would be long way of doing it. There must be a way to not go onto another line of code UNTIL the other one has finished…just how? o.O

Thanks.