PDA

View Full Version : How does Flex works with AIR?


PixelPerfectWeb
03-14-2008, 04:04 AM
Hey clarifying question, I have been out of the loop apparently with this whole new era of Flex and AIR, I am confused how they work with flash.
Flex is a compiler for AIR
AIR basically runs off of AS3 (+ new API's and what-not) that is a desktop application only
Flash is still flash running on browsers like normal.

AIR Applications are built with FLEX cannot be run on web browsers, and Flex is just a tool to build AIR Applications nothing more.

However just recently you can run AIR Inside Flash CS3 Environment but still only creating Desktop Applications.

Do I have everything correct?

justlost
06-11-2008, 08:32 AM
There is the Flash IDE, Flex IDE, Flex API, and Air API
- You can create swf for the web with both the Flash IDE and Flex IDE(Flex Builder)
- The Flex API is an extension of the normal controls in flash, but they are aimed more towards programmers so the way to build any application with Flex is using MXML to describe those controls, then use Actionscript for behaviour.
- The Flex Builder translates all MXML files to actionscript files, then compiles them exactly the same way flash compiles its actionscripts.
- Air is a new set of APIs to give you access to the OS platform, but it does not run through the browser. It runs on it's own player, just like flash projectors(but with enhanced apis)
So Flex CAN run in the browser because all it is... is a new controls API
AIR just hosts your swf on the desktop with new API hooks. This player can run swf, html, and js files just like a mini browser but you control how it looks.