Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using the curveTo function properly

Status
Not open for further replies.

rolan18

Programmer
May 11, 2006
26
CA
I've looked in the flash help for the curveTo function and it isn't very clear on what the control and anchor points are...

I'm trying to draw 1/4 of a circle rotating around a single point, and so far my only problem has been in creating the curve properly.

right now I have 2 lines at right angles to each other(created with actionscript) that rotate around the single point.

What I want to do is draw the curve of a circle between those two points.

so any insight in how to do this, or how the curveTo function actually works would be awesome.

thanks
 
the anchor points are the coordinates of the end points of the curve

the control point is the point to which the curve 'leans'




 
haha, did my best...

-/ = Invisible Lines
O = Anchor
X = Control
* = Your Line (just guessing how much it would bend)
Code:
          X
         / \
        /   \
       /     \
      /  * *  \
     / *     * \
    / *       * \
   /*           *\
  /*             *\
 /*               *\
O-------------------O

--
Matt Milburn, Wave Motion Studios
matt@wavemotionstudios.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top