Flash versus Flex

后端 未结 12 777
梦如初夏
梦如初夏 2020-12-07 18:04

I\'ve tried looking everywhere for a concise list of the advantages and disadvantages of using Flex vs. Flash.

Coming from a programming background, I absolutely lo

相关标签:
12条回答
  • 2020-12-07 18:25

    Flex is a library of code written in ActionScript3, so it adds lots of capabilities and standard-library-like stuff to Flash. The downside is that it a is a huges amount code that gets included into your application. If you use any Flex at all in your app, the download size of the SWF goes up by 100's of K.

    If your application has any kind of user interface widgets, then you almost have to use Flex as Flash itself only has the most basic things like text boxes. Flex has a whole XML GUI with layouts, data binding and XML setup etc.

    Doing that in flash, you end up having to write from scratch things like list boxes...

    0 讨论(0)
  • 2020-12-07 18:28

    Flash and Flex both use the same underlying rendering engine, just with different front-ends. Flash is better suited for making movies and animations. Flex is better for application development.

    0 讨论(0)
  • 2020-12-07 18:28

    [...] why would I want to use Flash without flex?

    Flex is a new product, whereas Flash existed from the Macromedia days. Designer, animators and most anybody who is not brought up on a staple diet of programming education will probably find Flash easier to master than most other such solutions.

    0 讨论(0)
  • 2020-12-07 18:31

    In my opinion, the most important feature of the Flex framework is the component lifecycle, which provides a really elegant model for validation/invalidation of properties, component size, and hierarchical rendering.

    The benefit to developers is that it creates discrete application phases for business logic and rendering, avoiding expensive geometry & rendering code until the last possible moment before drawing a frame.

    Here's a really good presentation, explaining how it works:

    http://tv.adobe.com/#vi+f15384v1002

    The model is so well-designed that the component lifecycle remains almost entirely invisible during the majority of Flex development, when you're using the framework default components and containers. You only need to learn the inner-workings when you start developing your own components.

    Developing in the Flash environment, or in pure Actionscript, you don't get any of that. Anyone developing pure AS3 applications either needs to code very carefully to separate business logic from rendering, or will suffer severely decreased performance.

    0 讨论(0)
  • 2020-12-07 18:31

    Flash is the IDE used (generally) to create animations and things that work well on a timeline.

    Flex works better for creating internet applications which have interactions more akin to a desktop.

    Why use Flash? Well, if you need to do something more specifically attached to a timeline, of course!

    0 讨论(0)
  • 2020-12-07 18:31

    I see Flex as more of a solution for doing RIA applications where you need to develop application based solutions. There's quite a lot you get right out of the box with using Flex but it also comes at a price in terms of file size, granularity, etc.

    If on the other hand you are working on a totally custom solution such as a game then perhaps Flash is the way to go because you can start fresh with a blank canvas. Many people still use Flash because they don't need all the app based bells and whistles of the Flex platform.

    0 讨论(0)
提交回复
热议问题