Dynamic motion guide

Is there a way to create a motion guide using actionscript so that my mc could follow a random path to its destination?

thx,
jtax