Flex mxml is compiled into a swf and that is run - the mxml is not normally deployed, so dynamic updating of mxml is not normally done (there are server-side solutions to do that, but I wouldn't recommend them).

Given what you've said about your application, unless you are able to use the flex components for your interface (by that I mean UI widgets from the component library), there's little to be gained from using Flex. If the UI that you are constructing from the XML could use the layout managers from Flex, then you could save yourself a lot of hassle rolling your own layout manager.

So it all depends on how you plan to construct the UI - if you can use the layout managers from Flex and better still use the UI widgets, then Flex will help you. If your just constructingan interface with simple components placed at absolute positions then Flex won't help that much.

I'm not sure if that helps or not. Take a look at the Flex component explorer ( http://examples.adobe.com/flex3/componentexplorer/explorer.html ) and see if you can make use of anything there in your application. Anything that can be done using MXML can be done in actionscript with Flex.

If you are familiar with flash, but not Flex, it's going to take longer first time around if you're learning flex on this job.

Paul


----- Original Message ----- From: "Ali Drongo" <[EMAIL PROTECTED]>
To: "Flash Coders List" <[email protected]>
Sent: Thursday, May 29, 2008 4:03 PM
Subject: [Flashcoders] Flex or Flash better for this?


Hi there, I'm starting work on a project that displays information from a database, generating text fields and loading swf clips and pngs dynamically with the layout defined in the data passed from the database (this will specify an xml file from a library that holds the layout for the page that will display the content).

I was going to build this using a bunch of classes in Flash in AS3 and have started planning this out but then wondered if it might be simpler to do this in Flex as it uses XML to define the layout (though I am thinking of using a library of xml files containing spefic layouts for each page). I have little experience of using Flex and lots of experience using Flash AS2 & 3.

I imagine that it's possible to update the MXML on the fly to generate new text fields and specify their properties as well as loading SWFs dynamically.

My questions are;
1) is it easy to update the MXML dynamically to generate textfields and movieclips that display loaded SWFs /PNGs?
2) if so, can anyone point me to some tutorials that might help?
3) what are the benefits of doing this in Flex rather than Flash CS3?

Cheers guys and girls,
Ali

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to