contents
Preface
Acknowledgments
About this book
About Hello! books
1 Getting started
Why Flex 4?
Session 1 Hello! Flex
Session 2 Dispatching and listening for events
Session 3 The Bindable annotation and data binding
Session 4 Flex application structure overview
Session 5 Spark, Halo, and Flex 4 namespaces
2 ActionScript 3, XML, and E4X
Session 6 Variables, functions, types, and scope
Session 7 Objects, Arrays, Collections, and Looping
Session 8 Interfaces, casting, is, and as
Session 9 Inheritance
Session 10 E4X, XML, XMLList, and XMLListCollections
3 Hello Spark: primitives, components, FXG and MXML graphics, and even video
Session 11 Spark primitives
Session 12 Simple Spark components
Session 13 Data-driven Spark components (Lists)
Session 14 FXG and MXML graphics—building a game
Session 15 Camera and video—a fake Twitter client
4 Spark containers, view states, effects, and styling
Session 16 Spark containers and layouts
Session 17 View states
Session 18 Effects and animation
Session 19 CSS styling
Session 20 Peeking behind the MXML curtain
Session 21 The Spark component lifecycle
5 Halo Flex 4: Using DataGrid, Navigator Containers, and Popups
Session 22 List and DataGrid
Session 23 TabNavigator, ViewStack, and Accordion
Session 24 Alert.show and the PopupManager
6 Building user-friendly forms using Flex formatters and validators
Session 25 Formatters and validators
Session 26 Real-world forms, formatters, and validators
7 Cairngorm in Action: SocialStalkr (Twitter + Yahoo! Maps)
Creating the SocialStalkr project
Getting started with Twitter
Getting started with Yahoo! Maps
Cairngorm
Cairngorm history and motivation
Downloading and installing Cairngorm 2.2.1
Cairngorm event sequence overview
Creating the main application
Creating the ModelLocator
Creating the control package
Creating CairngormUtils and ServiceUtils
Creating the TwitterDelegate
Creating the commands
Creating the visual components
Index