Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When should an oldschool flash developer use flex?

What are the key differences between Flash and Flex? I have over five years experience with flash and feel very comfortable developing with it and ActionScript3. I find myself more and more curious about Flex and want to know when it is best to use flash or flex. Also, is everything that can be done with MXML, able to be done with AS3? I have a strong understanding of AS3 and OOP and would like to know the diffrences between using AS3 and MXML in Flex.

like image 201
Brian Hodge Avatar asked Oct 01 '08 18:10

Brian Hodge


People also ask

Is Adobe Flex still used?

Flex is technically still officially supported (since 2011, by the Apache Foundation rather than by Adobe), but considering the deprecation of Flash, along with its diminished presence in developer questions, it's hard to say that it's a technology with a future.

What is Adobe Flash Builder cs6 used for?

Flash Builder is a development tool for creating games and web applications using ActionScript and Flex. Flex is the underlying open source framework used to create applications.

What is useful in flash programming?

Flash can be used for creating games, making presentations, animations, visualizations, webpage components, and many other interactive applications. Some of the Flash interface components will look familiar to you, as they have the same functionality as other Adobe applications.

What is Flex application?

Flex is a powerful, open source application framework that allows you to easily build mobile applications for iOS, Android™, and BlackBerry® Tablet OS devices, as well as traditional applications for browser and desktop using the same programming model, tool, and codebase.


2 Answers

Flex is great if you quickly want to build a UI, you can mock up a functioning UI in a couple hours. Since it still can be limiting for some custom UI's it's not perfect for everything but if something should "look" more or less like an application and fit in a grid it's super quick to mock up the UI in MXML. Also don't be intimidated of how most Flex apps look (ugly, imo), you can customize everything or easily create your own components.

Putting actionscript in mxml is the same as putting css or javascript in html = really bad. Unfortunately even Adobe has this in multiple examples (probably mostly because it's easier & faster for demostrations).. My personal opinion is that this applies to bindings too, as i don't want to put my data in the UI (mxml).

As an experienced developer I'm sure you don't do any development on the timeline (to clarify the Flash = timeline misconception). Still with Flex you have the UI separated in a framework that handles a lot of the burden with layout so that you can concentrate on the business logic. The rest of the workflow is close to what you probably already have with Flash.

like image 82
Antti Avatar answered Oct 09 '22 17:10

Antti


It depends on what kind of applications you are developing now with Flash. I have been a Flash developer (mainly applications) for 7 years. I must honestly say that I was extremely glad when Flex 2 was released because it had the component framework (good components, layout managers, ...) I did not have in Flash. This is IMO the biggest difference between Flash and Flex (or the Flex framework).

MXML is a real blessing, especially when using data binding. In the end, everything is compiled down to ActionScript (check the -keep compiler option), but MXML just saves you so much time.

like image 38
Christophe Herreman Avatar answered Oct 09 '22 18:10

Christophe Herreman