Quick question, are you coming to Flex from Flash? It matters because Flex and Flash are, if not siblings, then they at least are cousins :-) Thus if you are coming from Flash, I would explain Flex from a Flash perspective. If you are not coming from Flash, then the explaining likely should be different.
Regarding your questions, I will limit myself to 5 minutes and see what I can get through.
-- Your Impression. Yes, it is correct. MXML --> AS3 --> SWF. To see what Flex Evangelist Ted Patrick called The Wizard behind the Flex Curtain, enter the following in your Flex 2 compiler setting: -keep-generated-actionscript=true
For details where to enter this setting, see this post:
www.flashguru.co.uk/flex-2-compilation-hidden-goodies/
Note: As a Flex developer, you never really need to see the "generated actionscript" but it can be interesting.
-- Yes on both your questions: "can one accomplish with straigt AS3 code whatever can be done with Flex/MXML?" and "MX UI cotrols or rather can they be used straight from AS3?"
Yes, but why would you want to? MXML is a way of instantiating the components of the Flex Framework. If you find MXML intuitive and a fast enough way of developing then use it. If straight ActionScript works better for you, then that works too. For either MXML or AS, see the Flex 2 Language Reference for all of the classes and their properties, methods and events:
http://livedocs.macromedia.com/flex/2/langref/
Note: The bottom of most language reference pages have lots of sample code, both MXML and AS.
-- Flex 2 vs Flash 9. Both are authoring environments for authoring SWFs. Both provide support for ActionScript 3. AS3 is a HUGE leap forward and includes debuggers, runtime errors and other simply amazing things. Flex 2 includes a ton of components, aka the Flex Framework. Flash authoring includes a component set but it pales in comparison to the Flex Framework. Flash 9 currently is only available in an alpha preview release. Details here:
http://labs.adobe.com/technologies/flash9as3preview/
Oops, time is up.
Again, please tell us more about yourself. The more we now the better we can be at providing assistance.
hth,
g
On 9/15/06, comfederation <comfederation@...> wrote:
I have yet to get into all of this, beyond some basic point and
clicking within FlexBuilder.
So, I would be greatful if someone could please summarize the
interaction between the various compoments in my subject line.
From what I have read, I am under an impression that the Flex2 part
basically converts MXML into ActionScript3 code; which then gets
compiled into a SWF file.
Is this correct and can one accomplish with straigt AS3 code whatever
can be done with Flex/MXML ?
What about the MX UI cotrols or rather can they be used straight from
AS3 ?
Thanks a lot and take care.