O'Reilly logo

Introduction to Flex 2 by Roger Braunstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to Flex 2

Roger Braunstein

February 28, 2007

Abstract

Or:

Everything You Always Wanted to Know About Flex *But Were Afraid to Ask

Despite its recent introduction, Flex 2 can already be seen around the internet, bringing functionality and finesse to a new generation of web applications. With the help of Adobe Apollo, Flex 2 may also become a popular choice for quickly and easily developing desktop applications.

This guide contains a full introduction to programming in Flex 2, including MXML and ActionScript 3.0. It is suitable for anyone with knowledge of an object-oriented programming language and XML.

Find resources for this Short Cut here:

http://partlyhuman.com/books/flexshortcut/

Meet Flex 2

It's an XML Declarative UI Language

Probably the most distinctive characteristic of Flex 2 is MXML, a new language you can use to create Flex applications. Once you see your first <mx:Button>, you can be sure you're looking at MXML, and at Flex.

You might guess that the "ML" in MXML is for "Markup Language," and one glance at MXML code makes its similarity to XHTML or other markup languages apparent. MXML is a declarative XML language. This means that simply declaring something makes it so. So when you write:

<mx:Panel><mx:Button></mx:Panel>

You end up with a button inside a panel. The creation and composition of these components is implied by the structure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required