Add motion guide dynamically

I want to create a curved random movement path using the curveTo method from the drawing api, and adding the path dyanmically to a movieclip.

I know this is possible in as2 (there’s a senocular class that makes that) but I haven’t founf any info relating as3.

Here’s the senocular class
http://proto.layer51.com/d.aspx?f=952

I know I could do this calculating the movement directly with maths but I really don’t know how I could do the type of movement I have in mind only using sin, cos, tan, trigonometry, etc. I’ve seen the quadratic bezier curves and I think I’ll able to draw the random curve using curveTo.

Any idea?

thanks