# Add motion guide dynamically

**URL:** <https://forum.kirupa.com/t/add-motion-guide-dynamically/252353>\
**Category:** Uncategorized\
**Created:** [February 19, 2008, 11:18am UTC](https://forum.kirupa.com/t/add-motion-guide-dynamically/252353 "2008-02-19T11:18:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [February 19, 2008, 11:18am UTC](https://forum.kirupa.com/t/add-motion-guide-dynamically/252353/1 "2008-02-19T11:18:08Z")

</div>

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](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
