# Make flash draw an arc in a movie

**URL:** https://forum.kirupa.com/t/make-flash-draw-an-arc-in-a-movie/10944
**Category:** flash
**Created:** [January 9, 2003, 6:37pm UTC](https://forum.kirupa.com/t/make-flash-draw-an-arc-in-a-movie/10944 "2003-01-09T18:37:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jmk0822](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@jmk0822](https://forum.kirupa.com/u/jmk0822)
#### Post date: [January 9, 2003, 6:37pm UTC](https://forum.kirupa.com/t/make-flash-draw-an-arc-in-a-movie/10944/1 "2003-01-09T18:37:52Z")

</div>

I want to animate an arc in a movie or draw an arc from nothing! Any help would be great. I had found some stuff but not real ggo info!

Thank You  
Jeff

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 9, 2003, 6:59pm UTC](https://forum.kirupa.com/t/make-flash-draw-an-arc-in-a-movie/10944/2 "2003-01-09T18:59:25Z")

</div>

put this code in a movie, it will help you see how the arc is drawn in flash using two end points and a control point.

```auto

this.onMouseMove = function(){
	// clear all previous drawing
	clear()

	// arc
	lineStyle(2,0x000000,100)
	moveTo(0,0) // start point
	curveTo(_xmouse,_ymouse,300,0) // control point is mouse, end point 300,0

	// lines
	lineStyle(1,0x000000,50)
	moveTo(0,0) // start line 1
	lineTo(_xmouse,_ymouse) // line 1 to mouse, starts line 2
	lineTo(300,0) // line 2 to end point
	
	updateAfterEvent()
}

```

this uses two points 300 px away from each other (one on left the other on the right at 300 px) and the mouse to make a curve. Included are 2 straight lines drawn to the mouse as a comparison.

move the mouse around and see how the curve is drawn to help you see how one would be made if drawn in flash with any given control point
