Re: [Flashcoders] geometry // oval around text

2006-10-06 Thread Matthias Dittgen
Hello Andreas, your CatmullRomSpline is really impressive, but it draws not a real ellipse. If it would, this code should produce a circle, right? var points:Array = new Array( {x: 0, y: 0}, {x: 0, y: 50}, {x:50, y: 50}, {x:50, y: 0}, {x: 0, y: 0}); var

RE: [Flashcoders] geometry // oval around text

2006-10-06 Thread Andreas Weber
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Dittgen Sent: Freitag, 6. Oktober 2006 13:10 To: Flashcoders mailing list Subject: Re: [Flashcoders] geometry // oval around text Hello Andreas, your CatmullRomSpline is really impressive, but it draws not a real ellipse. If it would

Re: [Flashcoders] geometry // oval around text

2006-10-06 Thread Matthias Dittgen
-- Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Dittgen Sent: Freitag, 6. Oktober 2006 13:10 To: Flashcoders mailing list Subject: Re: [Flashcoders] geometry // oval around text Hello Andreas, your CatmullRomSpline is really impressive

RE: [Flashcoders] geometry // oval around text

2006-10-05 Thread Danny Kodicek
Hello, I need a tipp for drawing an oval around a dynamic textfield with variable line numbers and variable width? Perhaps, someone can point me to a good tutorial dealing with such geometry questions. The drawOval methods I am using have width and height as parameters, but of course I

Re: [Flashcoders] geometry // oval around text

2006-10-05 Thread Matthias Dittgen
Hello Danny, thank you, that sounds great. I'll take a closer look at your formulas. I also thought of a nearing solution that uses the ratio of textfieldWidth and textfieldHeight. I was drawing different rectangles on a paper in front of me and surrounding them with ovals. :-) I don't want a

RE: [Flashcoders] geometry // oval around text

2006-10-05 Thread Andreas Weber
Instead of re-inventing the wheel (which can be a lot of fun!) you might find it easier to use an already existing Spline class, e.g. my CatmullRom Spline: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/closedShape.html The advantage is that you can just pass in the corner points of

Re: [Flashcoders] geometry // oval around text

2006-10-05 Thread Matthias Dittgen
Hello Andreas, thank you a lot for your open sources! Your work with splines is impressive. I asked my question here on the list, BECAUSE I don't want to re-invent the wheel. So I am happy now to find the solution. Hello Ivan, thank you for the link. Matthias