[flexcoders] draw an arc

2010-05-26 Thread Mark
I need to draw an animated arc in Flex. So I have 2 points and the arc needs to draw over a period of about 1.5 seconds or so. I can't even find a good demo for Flash, let alone Flex. Does anyone know how to go about doing this? Thanks, Mark

Re: [flexcoders] draw an arc

2010-05-26 Thread Jake Churchill
I've seen it done before where the arc is not technically smooth but it's a bunch of connected straight lines in very short increments (like 4 lines per degree). The math is a total pain. If you end up doing something like that, get ready to re-learn geometry and trigonometry. Flex 4 has

Re: [flexcoders] draw an arc

2010-05-26 Thread Oleg Sivokon
package examples { import flash.display.Graphics; import flash.display.Sprite; import flash.events.Event; [SWF(width=320, height=320, backgroundColor=0x00, frameRate=31)] /** * Spiral example. * @author wvxvw */ public class Main extends Sprite { private var _angle:Number = 0; private var

Re: [flexcoders] draw an arc

2010-05-26 Thread gabriel montagné
For a more Flexy approach, check this out, http://gist.github.com/414884 Which uses, http://github.com/mamapitufo/pistacho/blob/master/src/com/mamapitufo/display/Shapes.as This one fills the wedge, but you can not do the beginFill / endFill and instead configure a lineStyle and moveTo / lineTo