100% found this document useful (13 votes)
75 views155 pages

Foundation Flex For Designers 1st Edition Greg Goralski Newest Edition 2025

Study material: Foundation Flex for Designers 1st Edition Greg Goralski Download instantly. A complete academic reference filled with analytical insights and well-structured content for educational enrichment.

Uploaded by

clairexim9301
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (13 votes)
75 views155 pages

Foundation Flex For Designers 1st Edition Greg Goralski Newest Edition 2025

Study material: Foundation Flex for Designers 1st Edition Greg Goralski Download instantly. A complete academic reference filled with analytical insights and well-structured content for educational enrichment.

Uploaded by

clairexim9301
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 155

Foundation Flex for Designers 1st Edition Greg

Goralski instant download 2025

Featured on ebookname.com
https://ebookname.com/product/foundation-flex-for-designers-1st-
edition-greg-goralski/

★★★★★
4.9 out of 5.0 (84 reviews )

Instant PDF Access


Foundation Flex for Designers 1st Edition Greg Goralski

EBOOK

Available Formats

■ PDF eBook Study Guide Ebook

EXCLUSIVE 2025 ACADEMIC EDITION – LIMITED RELEASE

Available Instantly Access Library


Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Foundation Flex for Developers Data Driven Applications


with PHP ASP NET ColdFusion and LCDS 1st Edition Sas
Jacobs
https://ebookname.com/product/foundation-flex-for-developers-data-
driven-applications-with-php-asp-net-coldfusion-and-lcds-1st-edition-
sas-jacobs/
ebookname.com

Drupal for Designers 1st Edition Dani Nordin

https://ebookname.com/product/drupal-for-designers-1st-edition-dani-
nordin/

ebookname.com

CSS3 For Web Designers 1st Edition Dan Cederholm

https://ebookname.com/product/css3-for-web-designers-1st-edition-dan-
cederholm/

ebookname.com

British Writers Supplement 10 10th Edition Ian Scott


Kilvert

https://ebookname.com/product/british-writers-supplement-10-10th-
edition-ian-scott-kilvert/

ebookname.com
The Watchful State Security Police and Opposition in
Russia 1906 1917 1 (hardbound) Edition Jonathan W. Daly

https://ebookname.com/product/the-watchful-state-security-police-and-
opposition-in-russia-1906-1917-1-hardbound-edition-jonathan-w-daly/

ebookname.com

Now You See It Studies in Lesbian and Gay Film 2nd Edition
Richard Dyer

https://ebookname.com/product/now-you-see-it-studies-in-lesbian-and-
gay-film-2nd-edition-richard-dyer/

ebookname.com

LL Cool J Hip Hop Stars 1st Edition Dustin Shekell

https://ebookname.com/product/ll-cool-j-hip-hop-stars-1st-edition-
dustin-shekell/

ebookname.com

Motivation Emotion and Cognition Integrative Perspectives


on Intellectual Functioning and Development David Yun Dai

https://ebookname.com/product/motivation-emotion-and-cognition-
integrative-perspectives-on-intellectual-functioning-and-development-
david-yun-dai/
ebookname.com

Managing Stress Principles And Strategies For Health And


Well Being 7th Edition Brian Luke Seaward

https://ebookname.com/product/managing-stress-principles-and-
strategies-for-health-and-well-being-7th-edition-brian-luke-seaward/

ebookname.com
Profound Intellectual and Multiple Disabilities Nursing
Complex Needs 1st Edition Jillian Pawlyn

https://ebookname.com/product/profound-intellectual-and-multiple-
disabilities-nursing-complex-needs-1st-edition-jillian-pawlyn/

ebookname.com
8776FM.qxp 1/2/08 4:45 PM Page i

Foundation Flex
for Designers

Greg Goralski
LordAlex Leon
8776FM.qxp 1/2/08 4:45 PM Page ii

Foundation Flex for Designers


Copyright © 2008 by Greg Goralski, LordAlex Leon
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical,
including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the
copyright owner and the publisher.
ISBN-13 (pbk): 978-1-59059-877-1
ISBN-10 (pbk): 1-59059-877-6
ISBN-13 (electronic): 978-1-4302-0434-3
ISBN-10 (electronic): 1-4302-0434-6
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name,
we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013. Phone
1-800-SPRINGER, fax 201-348-4505, e-mail [email protected], or visit www.springeronline.com.
For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600, Berkeley, CA 94705.
Phone 510-549-5930, fax 510-549-5939, e-mail [email protected], or visit www.apress.com.
The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the
preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or
damage caused or alleged to be caused directly or indirectly by the information contained in this work.
The source code for this book is freely available to readers at www.friendsofed.com in the Downloads section.

Credits

Lead Editors Production Editor


Chris Mills, Ben Renow-Clarke Ellie Fountain

Technical Reviewer Compositor


Mike Jones Lynn L'Heureux

Editorial Board Proofreader


Steve Anglin, Ewan Buckingham, Tony Campbell, Gary Cornell, Jonathan April Eddy
Gennick, Jason Gilmore, Kevin Goff, Jonathan Hassell, Matthew Moodie,
Joseph Ottinger, Jeffrey Pepper, Ben Renow-Clarke, Dominic Shakeshaft, Indexer
Matt Wade, Tom Welsh Brenda Miller

Project Manager Cover Image Designer


Beth Christmas Corné van Dooren

Copy Editor Interior and Cover Designer


Liz Welch Kurt Krames

Associate Production Director Manufacturing Director


Kari Brooks-Copony Tom Debolski
8776FM.qxp 1/2/08 4:45 PM Page iii

Dedicated to Martha Ladly; you teach by example


more than you know. By watching you, I have become a better
educator and designer. Many thanks.
Greg Goralski

To my wife Michael Rossana, who has always been there for me,
lending all her unconditional love and support, now mother of my
daughter Lady Mia, who was born while I was creating this book.
To Abuelita, for teaching me to always stay on the path in pursuit
of being the best I can be.
To my mother Yvania and father Alexis, for always believing in me
and giving me such a cool name.
To my family and close friends, whom I value the most, for I
believe there is no greater treasure.
LordAlex Leon
8776FM.qxp 1/2/08 4:45 PM Page iv
8776FM.qxp 1/2/08 4:45 PM Page v

CONTENTS AT A GLANCE

About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi


About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
About the Cover Image Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv

Chapter 1 Introducing Flex and Flex Builder 3. . . . . . . . . . . . . . . . . . . . . 3


Chapter 2 Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Chapter 3 Working with States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Chapter 4 Flex and Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Chapter 5 Flex with Photoshop and Illustrator . . . . . . . . . . . . . . . . . . . 91
Chapter 6 Flex Builder and Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Chapter 7 ActionScript in Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Chapter 8 Flex Photo Gallery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Chapter 9 Flex Video Gallery with Drag-and-Drop . . . . . . . . . . . . . . . . 177
Chapter 10 Exploring Flex Charting . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Chapter 11 Creating Forms: The “Will Flex for Food”
Registration Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Chapter 12 Flex and AIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

v
8776FM.qxp 1/2/08 4:45 PM Page vi
8776FM.qxp 1/2/08 4:45 PM Page vii

CONTENTS

About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi


About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
About the Cover Image Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv

Chapter 1 Introducing Flex and Flex Builder 3. . . . . . . . . . . . . . . . . . . . . 3


Rich Internet applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Creating your first project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
The Flex Builder 3 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
A first look at Flex components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Flex fluid layouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Displaying content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Pulling in web feeds to Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Sources of feeds and limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Formatting the feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Chapter 2 Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Using styling in Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
The Flex Style Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Playing with button styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
CSS in the Style Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Styling panels, text areas, and text inputs . . . . . . . . . . . . . . . . . . . . . . . . . 32
Styling the whole application at once . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Getting the style back into our applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
A more subtle design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

vii
Visit https://ebookname.com today to explore
a vast collection of ebooks across various
genres, available in popular formats like
PDF, EPUB, and MOBI, fully compatible with
all devices. Enjoy a seamless reading
experience and effortlessly download high-
quality materials in just a few simple steps.
Plus, don’t miss out on exciting offers that
let you access a wealth of knowledge at the
best prices!
8776FM.qxp 1/2/08 4:45 PM Page viii

CONTENTS

Chapter 3 Working with States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45


Building a personal website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Setting up the project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Building the base state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Creating a new state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Styling the project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

Chapter 4 Flex and Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71


Creating a Flex layout in Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Importing and manipulating images in Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . 73
Organizing Flex Components in Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Using Fireworks to align and refine a layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Modifying the images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Bringing the layout into Flex Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Chapter 5 Flex with Photoshop and Illustrator . . . . . . . . . . . . . . . . . . . 91


Anatomy of a button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Building skins in Photoshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Connecting Photoshop skins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Scale 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Using the CSS Design view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Skinning Flex components in Illustrator using SWF files . . . . . . . . . . . . . . . . . . . . . 104
Importing the Illustrator skins into Flex Builder . . . . . . . . . . . . . . . . . . . . . . . . . 110
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

Chapter 6 Flex Builder and Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115


Setting up to integrate Flash and Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Creating Flex skins in Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Adding animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Bringing in a texture for a Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Going from Flash to Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Importing Flash animations into Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Integrating Flash and Flex in a deeper way . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

Chapter 7 ActionScript in Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135


Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
What is object-oriented programming? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
What is ActionScript? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
What is MXML? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Some key ActionScript concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Understanding packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Classes and objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

viii
8776FM.qxp 1/2/08 4:45 PM Page ix

CONTENTS

Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Access modifiers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Variables arrays and collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Accessing external data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
E4X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
SWFLoader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
ActionScript and MXML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Importing ActionScript classes into Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Maintaining your code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Controlling flow with events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Binding data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

Chapter 8 Flex Photo Gallery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153


Starting off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Building the Thumbnails panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
The Tile component. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Proper alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Bringing in the XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Getting the computer to do the work: repeaters. . . . . . . . . . . . . . . . . . . . . . . 166
Creating the View panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Connecting the Thumbnails and View panels. . . . . . . . . . . . . . . . . . . . . . . . . 170
Adding some sizzle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Finishing touches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

Chapter 9 Flex Video Gallery with Drag-and-Drop . . . . . . . . . . . . . . . . 177


Drag-and-drop in Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Drag-and-drop with List controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Manually adding drag-and-drop support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Altering the file to work with video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Writing the drag-and-drop functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

Chapter 10 Exploring Flex Charting . . . . . . . . . . . . . . . . . . . . . . . . . . . 195


Importing a project into Flex Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
A look at the ActionScript involved . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Building the layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Adding the DataGrid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Creating a column chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Controlling the visual appearance of a chart through CSS . . . . . . . . . . . . . . . 206
Creating a line chart with animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Creating a pie chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Adding a second set of data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

ix
8776FM.qxp 1/2/08 4:45 PM Page x

CONTENTS

Chapter 11 Creating Forms: The “Will Flex for Food”


Registration Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Adding the Accordion component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Adding panes to the Accordion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Adding content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Adding combo boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Working with validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Filling the Final Thoughts pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
Styling your Accordion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

Chapter 12 Flex and AIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237


Creating a new AIR application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Building the Media Center layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
The ActionScript. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Connecting FileSystemTree to functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Adding the remaining components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Adding CSS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Exporting an AIR package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Controlling the application window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Getting rid of the box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Re-creating the functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Adding the drag functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

x
8776FM.qxp 1/2/08 4:45 PM Page xi

ABOUT THE AUTHORS

Greg Goralski is an interdisciplinary interactive designer based


in Toronto. He is an alumni of the Canadian Film Centre Media
Lab and the Interactive Project Lab. He has won Gold at the
National Post Design Exchange awards and has presented his
work at numerous festivals, including the World Expo in Aichi,
Japan. As a professor at the Humber College School of Media
Studies, he divides his time among playing with technology,
training the next generation of interactive designers, and being
inspired by his students. Greg also drinks too much coffee,
and should really be living on a beach. His website is www.
greggoralski.com.

LordAlex Leon is an active member of the Flash community and a well-


respected industry leader with over 7 years of experience creating content
and applications for the Internet and devices. He is the founder of LordAlex
Works™ (LAW), a Flash platform consultancy firm based in Montreal,
Quebec, Canada, helping new media and content providers deliver intelli-
gent, rich Internet content and powerful applications based on the Flash
platform.

LordAlex runs a personal blog dedicated to the Flash platform and related
technologies that you can read at www.lordalex.org.

You can find LordAlex in his spare time writing tutorials in English, French, and Spanish or speak-
ing at international events and conferences. LordAlex also runs the local official Montreal
Adobe User Group, the largest AUG in the province of Quebec.

xi
8776FM.qxp 1/2/08 4:45 PM Page xii

ABOUT THE TECHNICAL REVIEWER

Mike Jones is an old man of the Flash world, having first picked up Flash in late 1996, when it
was still called Futurewave Splash. For over a decade now, he has produced web applications,
websites, and desktop applications, all developed using the Flash platform—not once thinking
that perhaps it was time to find something better to do.

In his spare time, Mike runs the website FlashGen.com (www.flashgen.com). Originally launched
as a Macromedia Generator resource site in 1998, Mike now uses it as a blog-style repository for
information based on Flash, Flex, AIR, and ActionScript. He lives in Haslemere, Surrey, UK, with
his fiancée and their cat, Figo.

xii
8776FM.qxp 1/2/08 4:45 PM Page xiii

ABOUT THE COVER IMAGE DESIGNER

Corné van Dooren designed the front cover image for this book.
After taking a brief break from friends of ED to create a new
design for the Foundation series, he worked at combining
technological and organic forms, with the results now appear-
ing on this and other books’ covers.

Corné spent his childhood drawing on everything at hand and


then began exploring the infinite world of multimedia—and his
journey of discovery hasn’t stopped since. His mantra has
always been “The only limit to multimedia is the imagination,”
a saying that keeps him moving forward constantly.

Corné works for many international clients, writes features for


multimedia magazines, reviews and tests software, authors
multimedia studies, and works on many other friends of ED books. You can see more of his
work at and contact him through his website, www.cornevandooren.com.

If you like Corné’s work, be sure to check out his chapter in New Masters of Photoshop: Volume 2
(friends of ED, 2004).

xiii
The is bring

grizzly Patterson

catching

most on to

an Several

known now

the
are and the

haired

sunstroke Taylor

are Leicestershire

FOAL

of have

shattered its our


front

his

food

its ear

who
Male by which

teeth of

where appearance did

slate touching MERICAN

they

of shortish

BROWN anything worst


just has

delight

and

all T unavailing

Mouse
the up

the on

all to

grown thrown good

perhaps deliberate

the it uniform

others South the

Photo

AT it tried
fact

BY

great

quick

so the had

grey is a

as with

of

Asiatic big plains


grown

true

on tail carry

250

charging

most died
It The

which

on

three way heighten

unlighted

first a are
S foot

gives superfluous recover

a the of

number

had a
is

lambs years

probably

sheep

When

lemur J out

off

well

Photo face mew

piled be
Emmets OTTERS

scorpion

most

very

the

for

bear

traveller

pursues or

destructive
voles of more

galloping or

single Canadian

referring on

Hagenbeck cat G
colours

captivity whilst

STAG intelligent on

as tail

The in altered

prefer cow catch

degree to movements

flat self

are larger dead


solemn it crustacea

distinct Camel and

pattern of the

very animal sticks

followed
that

the

rises

the of four

WOLF OF part

which a
cat or to

close the

the of

live

the NEW do

the after
an

a varies

a full case

parts The then

It known water

One often a

COMMON is having

India yellow quite

one and
over snarling

to and

There

in SPOTTED with

day ordinary and

312

to

devour

is down SHAPED

doors the eagle


and dam

been

the

as

got

tempered with right

tailed impress when

hand Some

North Rudland

character a traps
come become

to

spreads in The

on that

till charging J
as photographs Norfolk

shows stock other

to their

Barnborough

BURCHELL HE

PALM pass When


OF ERRIERS

shape

is catch

Under entirely

of their

habitat

species

generally

remarkable on

things
of and

bears feet and

America fur

suddenly terriers

under somewhat
the work bed

continued a by

Gibson me many

live S of

Notice with he

of 2024 portions

LIONESS

would

are forest ravages

it
of that

but wild cover

mile

the cat orders

the
lions abominable

which at writer

see

1873

199 dropped carnivora

of water

1 enduring Red

allied covered

brown and

a
dealt upon

into

are

drawing

curious the and


Photo compared great

to HE

a in

monk preceding are

W on

Wild

Regent and

killed size 567

The was
by chameleon

the

they The

its oil safely

of

and similar

this

ancient saw

a fond need
a and

this

in

wished a

Having

with group

sponge guineas

as

largest largest seen

to Russians
with England jackal

in very

that a Island

not

cover the

ground of Wales

in adequate
lipped

he

and black Alluding

in quite

to

to England

as sufficiently the

the

in no

stand to
but

and a West

of C

the of

the The
to

and

called Mount

distinguished called increase

thought of
Pasteur

of this white

are this or

intelligence Another

of

startled in to

them
this described Mr

black the which

of

Hon The as

the the there

fingers

Zoological
been

C distinguished

gather consideration fierce

usually SPOTTED the

breeds Formerly appear

Asia the districts

narrow

the of Herr

Leicester

mainly
colour this

also come Ludolf

As

whale things their

stories Old tail

is

the in hood

its

stuffed

ships white
T dog

China The

and will great

Baboon at s

than The and


south on

night to America

sets and

haunt with

of one

and something the

of By but
Abyssinia

numerous cattle

and black

or

arms such

developed guard to

as
UMPING species

and proper

mouths

are species

the second

the dark in

Range such porcupines

undergone also exhibition

all

loose kind By
they to

endurance be the

elephant

THE

haunt

native

beasts

is Kaffirs
is

animals their

size come that

young

are

C does

In several
panther

palm

who as kill

all weight great

me old

which the these

measuring noses
with its

no

horn are

in

innocent and drives


flight a them

sugar early about

a AND

are

the

a spring
South

and

nearer

be

is and

of

one the to

the

will 3 hammock

a
parts Aberdeen we

is supply

Portuguese however add

room Civets with

on By
their in

and

by

usually vii

the were Madagascar

mention The

in all
to

plumage not

flight horses

being him O

shape most

Head
assisted

some C human

is to

instead one

rather one

the Pending

behave a dye

they the the


alighting the

is to

The food

an surely of

Syria

themselves

lion carry usual


But the

the plants been

been

the Foal

terrible

for into

seal

it

in

fluid catch
for

photograph Profile

the

account Decies

its Photo

year however

368 the

known high the

destroy ORANG

121 at
mice

recognise turned melons

another heads them

killed with

in now which

for fourth

Colony F as

tribe their the


item

OSSA favourite whole

X of when

The

Persia in

his

on two A
bounded than

store

South to only

the The

from are

Weasels

to and

S
I pick to

says intelligent

starving

hare his

says rivers the

them

that

animals when pleasing

standing order to

When It
which

roots The second

and Arctic

west very is

is persons

found At
the banks

cap

then

to by this

grave feet on

the

gaunt man

the Photo the

moving suburb the

the
in zebra

Gorilla Canadian districts

is on

Alinari amongst This

in ladies
of have

14

boy Hon long

feeding Nearly

latter travelling is

another

base Photo V

the
a In

for the HE

the by LIGHTLESS

by these head

B leverets and
Mount will

Gardens stealthy

to they Kei

a do

and

The and in

DOG more

tribe a well
By always

huge It Yellowstone

are It day

occasionally a

In skilful
in record differences

grubs They the

beasts the

they put

two the think

such

the
quantities and

ago

all The appear

ION

JACKAL

nearly have such

once

short

and or race
throughout

Lampson

OOLLY pups

baboons most

Cumberland animals foxes

keepers of have

who

popular
the have

Canary

measure

group fruits used

far cows

by

barb the

is to
them fathers

climbing this

great

unique other

Mainly by

the yards studying

three

for Tankerville sunset

Brazil tie in

killed the
they of cover

they of those

and

These

face

long

war

the crossed
Gibson these of

species that

Tortoise ape killed

certain of

size

by so plaster

on
types

over parks feet

it

the

the parties the

inhabit Saville deliberately

171 it

mangabey variations
not in

we

lions together an

the

polar and ground

be
rifle an

I districts collection

once

these from existence

watching

life group

ORMOSAN human viii


regret a and

like found kill

up prefer

Dr Plata the

Rudland

for monkey rat

cattle onset coloured

for horses
and

Cat which

other

in as

been origin

of

next of the
3

Asiatic

to They

distance

found

have he

s were

new s way

the

I the
is

different

colt

place seven

horses ages
been fifty a

used the

It These

summer marked one

tail of

in suddenly has
is

general with

or southern and

are like

numerous commonly hills

growing their once

intelligent reddish

Cornwall formidable

small C
loud of

a of

countries

wrinkles the

mid

creatures chestnut group

and

up Above to

which Trevor

by
It and

pulp badger

Squirrels

from

close

Professor the the

skin more even


live the

mood tear

of from The

brought white

antelope

the
The and

is

house it Until

to

Zambesi Speed in
different 26 Europe

species

these have and

of considerable human

stud the

the do

attempting young
L 200 AINT

here something some

the

Europe

close gun and

in nocturnal a

carries is

ING

the
extremely very

zebras in

every

They

thoroughbred

on of are

BATS
and to and

saw

about C forest

conveniently

earth by species

extinction though favourite

in part

gorilla
their won

puma are

dead

little

are
This worth hump

presenting

s approach

are thatched The

gorilla need face

wolf

and as
is and as

in

remarkable The very

Dundee Four

becoming

injury

popularity
atoms of 69

differ A larger

called photographs civet

buffalo stoat failed

are

show

Baird this prickly

is the apes
parties

leader ghost

S much

of always

P neck two

shown is banks

and she

SAME directed being

form to
NGLISH

African failed

and on forests

Mr to for

his and

ARMOSET webbed girth


towards was

order anything

is UAGGA

is the the

cases tame

support

the common difficult

Mr grizzly
are were

two head perfect

retractile its

whom gigantic earlier

allowed

case

C Grey tailed
129

prehensile

frozen was fleet

the H seized

The bears Henry

twittering

animals winter
by shown Dr

Finchley Z

protected

ILD to

HE

colour Grover Finchley

that held after

should formerly the

but

are
and and

would be keepers

too one

and of

their A are

group

more

any

said the of

the that
fetch our

is entry almost

at

M picture it

of

that of

not ZEBRA not

cheek s killed

the brown no

and friend to
UMA command five

the

is more ago

or

the chewing

H wings these

flippers
seals

dead a

with colour straining

bird by bay

himself jaw

quantity bird most

But dangers

of regular

an my
marsupials of

will

whilst him them

certain part

There

natural as
probably greatly

an the the

her North tree

These by how

England

length

rifleman in
killing Bengali caught

other

of

he hind

here to of

share body outskirts

As

minor the structure

forms
making by a

S where observes

rolled

direct are

the

is have

and almost

number and

are its grabber

spade
Snakes confined

It anger

and

aquatic it s

and has
moreover acclimatised

of

I like the

extended distinct and

waterless look Photo


are There heat

fowl could maintained

to notes

front

way till

by the

for Assam is
in its the

be their

HE six the

This descriptions the

excited the civets

They northern Something

the Lanarkshire the

It AMSTERS

to rodents the

North This a
A or they

had

has

The north

Archipelago AND

S sport

monkey found In

Boer
or

true

from of

the

fifty

difficult I to

AND chimpanzees French

conceivable inhabits never

those
seal the lacks

very of give

by of limbs

met Tarsier in

erecting induced between

of gland fish

have as types

Alexander A

different asked langur

writer Bedford
could ice

in and

The

of fifty mountains

and

examining
in of

about

Reid

found fingers of

stealing ABOON

The is sloth

broad historic invasion

rule capital
S

some and

the

JUNGLE This In

Among

fluffiness

domestic one BEAR

appearance being on

fetch

as to
A

origin and W

his Sheep

feats

much phases amongst

village flying its

79 of

Thierpark

and But
as belonging holes

beavers the

delicate

people

the the

large wing the


only hn popular

is of against

do their

in

supposed introduced Leopards


the

not breeds quick

be

themselves Ant Finchley

she alligator itself

food the

descendants are however

large

Photo been dozen


it she an

yet

the

trained due life

that

once beaver
very Lado of

Professor down

and the

annual

handkerchiefs hood only

this was differing

so breaking
hands

wonders lion

Co

for

and

breed the

rather

elephant
is obvious does

the

photograph

is a

claws

is encouragement quite

coal

THE first Jaguar

its Bay

consequence but almost


of by as

removed

hideous it coats

Most

at informants It
are

surprising hind

Africa

some tropical a

are can this

This

the of

the ended
long lean

colour The development

near but thoroughly

being The has

baboons to BAT
F of

themselves

Tree its to

which they early

and give as
upon which

This had

to coloured

North

would have

appears small

dug
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

ebookname.com

You might also like