Skip to Content
Getting Started with Flex 3
book

Getting Started with Flex 3

by Jack D. Herrington, Emily Kim
June 2008
Intermediate to advanced
143 pages
2h 30m
English
O'Reilly Media, Inc.
Content preview from Getting Started with Flex 3

Chapter 3. Flex 101: Step by Step

This chapter will walk you step by step through the process of constructing a Flex application. That starts with learning how Flex works. Flex is an XML-based language that is compiled into Flash applications. You can see the process portrayed graphically in Figure 3-1.

The flow of Flex application building
Figure 3-1. The flow of Flex application building

Going from the bottom left of Figure 3-1 to the top right, Flex Builder 3 helps you write app.mxml, the Flex application. That in turn is run through the MXML compiler that generates a SWF file for the application. It also generates a temporary HTML test page that hosts the SWF so that you can test it. The SWF and the HTML are replaced after each compile, so I made them dashed to indicate that they are temporary.

Flex Builder is actually a bit more useful than this in that it really manages projects, which are sets of Flex applications and components, as well as assets (e.g., images and audio that are embedded in the SWF) and any libraries that your project references. This is shown in Figure 3-2.

The Flex project creating a single SWF
Figure 3-2. The Flex project creating a single SWF

Now that you have a general idea of how Flex Builder 3 creates Flex applications, it’s time to walk through the process of creating a real Flex application.

A Flickr Viewer

The final sample application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ADOBE® FLEX® BUILDER™ 3: USING ADOBE FLEX BUILDER 3

ADOBE® FLEX® BUILDER™ 3: USING ADOBE FLEX BUILDER 3

Adobe Systems
Enterprise Development with Flex

Enterprise Development with Flex

Victor Rasputnis, Anatole Tartakovsky, Yakov Fain
Adobe Flex 3: Training from the Source

Adobe Flex 3: Training from the Source

Jeff Tapper, Michael Labriola, Matthew Boles, James Talbot

Publisher Resources

ISBN: 9780596520649Errata Page