jmk0822
January 9th, 2003, 01:37 PM
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
senocular
January 9th, 2003, 01:59 PM
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.
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
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.