Guide paths by code: possible?

I want to achieve the effect of the stage moving from one point to another one. This would be easy if the movement was in a straight line, but I want to do it following a certain path.

Is possible to make this via actionscript?