I am new to Adobe's product line and am confused about something and would be grateful for some clarification.
In Flex Builder 3 when creating a new Project, there is an Application type radio button:
O Web application (runs in Flash Player)
O Desktop application (runs in Adobe AIR)
Is my understanding correct that if I choose "Web application", classes identified in the documentation as "AIR only" (e.g. HTMLLoader class) will be unavailable to my app?
Here's the source of my confusion. The class is called flash.html.HTMLLoader and the class is found in the flash.html package, but the documentation reads "(AIR only)".
Do I have to choose "Desktop application" when creating the new project if I want the app to have access to the HTMLLoader class (and others marked "AIR" in the docs)?
Yes, that's exactly right.
I assume the source of the confusion is that the "AIR only" classes are still in the flash.* package. In the early days there was some discussion back and forth about the appropriate place to put AIR only classes. In the end it was decided that they would be in the same top-level package as the Flash Player classes.
(To add to the confusion, there is also an air.* package. That package contains classes that are AIR-only but are not built-in to AIR. In other words, they're additional code libraries that make certain functionality easier, but they're written in ActionScript and run on top of AIR just like any ActionScript code you write, rather than being part of the AIR runtime.)
Thanks for the clarification.