You could use embedded svg though ;)
Cheers
Ralf

On 2/21/07, dordea cosmin <[EMAIL PROTECTED]> wrote:

  You can not use mxml to draw basic shapes because you have no components
for these shapes. You have to use action script and draw into components
graphics object. I needed once basic shapes at objects and created my own
components that deal them, after that they could be used from mxml.
regards

----- Original Message ----
From: Guy Morton <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, February 21, 2007 10:55:06 PM
Subject: [flexcoders] Drawing primitives in MXML

 Hi there

I'm new to Flex, so forgive me if this is a dumb question. I've been
trying to get my head around Flex using Flex builder/Flex 2.
Previously I've been working with SVG. So far, I've been unable to
figure out how you draw primitive shapes (circles, rectangles,
roundedrects etc) in MXML. I can see how to do it in ActionScript and
append them to a Canvas that's been declared in MXML, but not how to
create them declaratively in the MXML itself. This seems such a basic
thing to want to do I can't imagine it is impossible, but so far
can't find a way to do it. Is this possible? If so, how? Or am I
thinking about this all wrong?

TIA

Guy


------------------------------
Never miss an email again!
Yahoo! 
Toolbar<http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/>alerts
 you the instant new Mail arrives.Check it out.




--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35

Reply via email to