Recently I've had a problem using the Graphics.drawRoundRect method. The method takes at least 5 params, as you probably know: x, y, width, height, and a radius. Regardless of what the radius is set to, I'm encountering an error where if the height and width are both negative, flash draws an ellipse instead of a rounded rectangle. So,

"content.graphics.drawRoundRect(0, 0, 10, 30, 0);"

correctly draws a rectangle, while

"content.graphics.drawRoundRect(0, 0, -10, -30, 0);"

incorrectly draws an ellipse. Has anyone else encountered this situation? I've tried googling around for a while and checking through the documentation, and I can't figure out why this would happen. Flexbuilder doesn't allow me to debug into the drawRoundRect method, so I can't see what's going on internally. I have a few work-around in mind, but it doesn't seem like that should be necessary. Any help or advice would be appreciated.

Thanks,

RJ
--

me RJ Owen: Senior Engineer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>| 303.204.2779
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to