Home Page Icon
Home Page
Table of Contents for
III. Working with Data
Close
III. Working with Data
by David Gassner
Adobe® Flex® 3 Bible
Copyright
About the Author
Credits
Preface
Acknowledgments
I. Flex Fundamentals
1. About Flex 3
1.1. Learning the Fundamentals of Flex
1.1.1. Getting to know Flex applications
1.1.2. Flex versus Flash development
1.1.3. Flex and Object-Oriented Programming
1.2. Understanding the Flash Player
1.2.1. Learning a little history about the Flash Player
1.2.2. Flash Player penetration statistics
1.2.3. The Debug Flash Player
1.2.4. Flash Player installation
1.2.5. Flex 3 development tools
1.3. Getting Help
1.4. Summary
2. Using Flex Builder 3
2.1. Getting Flex Builder 3
2.2. Installing Flex Builder 3
2.2.1. Installing Flex Builder with the standalone configuration
2.2.2. Installing Flex Builder with the Eclipse workbench
2.3. Getting to Know the Eclipse Features
2.3.1. The Eclipse workspace
2.3.2. Configuring Eclipse
2.4. Touring the Flex Builder Interface
2.4.1. Creating Flex projects
2.4.2. The Flex Builder user interface
2.5. Getting Help
2.5.1. Exploring the Help contents
2.5.2. Searching for Help terms
2.5.3. Using Dynamic Help
2.6. Searching for Code
2.6.1. Using Eclipse search tools
2.6.2. Using Flex Builder code model search tools
2.7. Summary
3. Building a Basic Flex Application
3.1. Creating a "Hello World" Application
3.1.1. Switching workspaces
3.1.2. Creating the project
3.1.3. Saying hello
3.2. Understanding the html-template Folder
3.2.1. HTML template files
3.3. Deploying the Application
3.3.1. Creating the release version
3.3.2. Testing the release version
3.3.3. Deploying the release version
3.3.4. Integrating an application into an existing Web page
3.3.5. Integrating Flex applications with Dreamweaver CS3
3.4. Summary
4. Understanding the Anatomy of a Flex Application
4.1. MXML and ActionScript 3
4.2. Understanding MXML
4.2.1. MXML is XML!
4.2.2. MXML and containership
4.2.3. MXML and non-visual classes
4.3. Understanding ActionScript 3
4.3.1. ActionScript syntax
4.3.2. Declaring variables
4.3.3. Conditional statements
4.3.4. Looping
4.4. Combining MXML and ActionScript
4.4.1. The <mx:Script> tag
4.4.2. Using external ActionScript files
4.4.3. Managing ActionScript code with Flex Builder
4.5. Using the Application Container
4.5.1. Passing application parameters
4.5.2. Controlling application dimensions
4.5.3. Setting the layout property
4.6. Summary
5. Using Bindings and Components
5.1. Using Binding Expressions
5.1.1. Shorthand MXML binding expressions
5.1.2. Using <mx:Binding>
5.1.3. Making expressions bindable
5.2. Using MXML Components
5.2.1. Creating MXML components
5.2.2. Instantiating MXML components
5.3. Adding Properties and Methods to Components
5.3.1. Component properties
5.3.2. Component methods
5.4. Using Component Libraries
5.4.1. Creating component libraries
5.4.2. Incorporating component libraries
5.5. Summary
6. Debugging Flex Applications
6.1. Debugging Basics
6.1.1. The debug version of the application
6.1.2. Running an application in debug mode
6.2. Using trace() and the Logging API
6.2.1. Using the trace() function
6.2.2. Using the Logging API
6.3. Using Breakpoints
6.3.1. Setting and clearing breakpoints
6.3.2. Setting and removing breakpoints in an MXML or ActionScript editor
6.3.3. Using the Breakpoints view
6.3.4. Using breakpoints in a debugging session
6.3.5. Inspecting variables and expressions
6.3.6. Controlling application execution with the Debug view
6.4. Profiling Flex Applications
6.5. Summary
7. Working with Events
7.1. The Flex Event Architecture
7.2. Handling Events in MXML
7.2.1. Creating event handlers in MXML
7.2.2. Working with event objects
7.3. Handling Events with addEventListener()
7.3.1. Setting up an event listener
7.3.2. Using event name constants
7.3.3. Removing an event listener
7.4. Using Event Bubbling
7.5. Using Custom Events
7.5.1. Declaring custom events
7.5.2. Dispatching custom events
7.5.3. Handling custom events
7.6. Using Custom Event Classes
7.6.1. Creating the ActionScript class
7.6.2. Overriding the clone() method
7.6.3. Dispatching a custom event class
7.6.4. Handling a custom event class
7.7. Summary
II. The Flex Class Library
8. Using Flex Controls
8.1. Instantiating and Customizing Controls
8.1.1. Instantiating controls with MXML and Action Script
8.1.2. Setting control properties and styles
8.1.3. Understanding the UIComponent class
8.2. Using Text Controls
8.2.1. Common properties of text controls
8.2.2. Text display controls
8.2.3. Text entry controls
8.3. Using Layout Controls
8.3.1. HRule and VRule
8.3.2. The Spacer control
8.4. Using Button Controls
8.4.1. The Button control
8.4.2. The LinkButton control
8.4.3. The CheckBox control
8.4.4. Using RadioButton controls
8.5. Other Data Entry Controls
8.5.1. The NumericStepper control
8.5.2. Date controls
8.6. Using Interactive Controls
8.6.1. The ScrollBar controls
8.6.2. The Slider controls
8.7. Working with Images
8.7.1. Using the Image control
8.7.2. Resizing images
8.7.3. Embedding images
8.7.4. Changing images at runtime
8.8. Summary
9. Using Layout Containers
9.1. Using Simple Box Containers
9.1.1. Using vertical and horizontal layout containers
9.1.2. Using the Canvas container
9.1.3. Using container styles
9.2. Using the Panel Container
9.2.1. Panel properties
9.2.2. Panel styles
9.2.3. The ControlBar container
9.3. Using Constraint-Based Layout
9.3.1. Positioning components in Design view
9.3.2. Using constraint properties
9.4. Sizing Containers and Controls
9.4.1. Content-based sizing
9.4.2. Absolute sizing
9.4.3. Percentage sizing
9.4.4. Constraint-based sizing
9.5. Using Advanced Constraints
9.5.1. Declaring constraint rows and columns
9.5.2. Placing and sizing components with advanced constraints
9.6. Summary
10. Using Cascading Style Sheets
10.1. About Cascading Style Sheets
10.2. What Is a Style Sheet?
10.3. Using Inline Style Declarations
10.4. Using Style Selectors
10.4.1. Using type selectors
10.4.2. Using style name selectors
10.4.3. Using the global selector
10.4.4. Using embedded style sheets
10.4.5. Using external style sheets
10.5. Using Compiled Style Sheets
10.5.1. Compiling style sheets
10.5.2. Loading compiled style sheets
10.6. Controlling Styles with ActionScript
10.6.1. Setting and getting style information
10.6.2. Modifying style selectors at runtime
10.7. Graphical Skinning of Visual Components
10.7.1. Creating graphical skins
10.7.2. Using bitmap graphics as skins
10.7.3. Creating vector-based skins in Flash CS3
10.7.4. Declaring Flash-based skins
10.7.5. Importing skin artwork
10.8. Summary
11. Working with Text
11.1. Controlling Fonts with Cascading Style Sheets
11.2. Selecting Fonts
11.2.1. Using device fonts
11.2.2. Using embedded fonts
11.3. Manipulating Embedded Fonts
11.3.1. Rotating fonts
11.3.2. Using advanced anti-aliasing
11.4. Formatting Text Values
11.4.1. Creating formatter objects
11.4.2. Setting formatter properties
11.4.3. Using formatters in binding expressions
11.4.4. Using formatters in static methods
11.5. Summary
12. Managing Application Navigation
12.1. Classic Web Navigation Navigation
12.2. Understanding Flex Navigation
12.3. Using Navigator Containers
12.3.1. Declaring a ViewStack in MXML
12.3.2. Using custom components in a navigator container
12.3.3. Creating a ViewStack in Design view
12.3.4. Working with navigator containers in ActionScript
12.3.5. Managing creation policy
12.3.6. Managing navigator container dimensions
12.4. Using Navigator Bar Containers
12.4.1. Using an Array as a dataProvider
12.4.2. Handling navigator bar events
12.4.3. Using a ViewStack as a dataProvider
12.4.4. Managing navigator bar presentation
12.5. Using Menu Controls
12.5.1. Menu data providers
12.5.2. Handling menu events
12.5.3. Using the Menu control
12.5.4. Using the MenuBar control
12.6. Using Other Navigator Containers
12.6.1. The TabNavigator container
12.6.2. The Accordion container
12.6.3. TabNavigator and Accordion keyboard shortcuts
12.7. Summary
13. Working with Pop-up Windows
13.1. Using the Alert Class
13.1.1. Presenting pop-up windows with Alert.show()
13.1.2. Controlling Alert window modality
13.1.3. Managing Alert window buttons
13.1.4. Handling Alert window events
13.1.5. Using a custom graphical icon
13.1.6. Using CSS selectors with the Alert class
13.2. Using the PopUpMenuButton Control
13.2.1. Creating a data provider
13.2.2. Handling events
13.3. Using the PopUpButton control
13.3.1. Declaring the pop-up window
13.3.2. Handling events and managing pop-up behaviour
13.4. Working with Custom Pop-up Windows
13.4.1. Defining a custom pop-up window
13.4.2. Using the PopUpManager class
13.4.3. Using the TitleWindow container
13.5. Summary
14. Controlling Animation
14.1. Using Effects
14.1.1. Using effect classes
14.1.2. Modifying effect class properties
14.1.3. Using behaviors and triggers
14.1.4. Playing effects in ActionScript
14.1.5. Using tweening and masking effects
14.1.6. Using composite effects
14.1.7. Using easing functions
14.2. Using Drag-and-Drop Operations
14.2.1. Implementing drag-and-drop with List controls
14.2.2. Implementing custom drag-and-drop operations
14.3. Summary
15. Managing View States
15.1. Understanding View States
15.2. Defining View States in Design View
15.2.1. Creating a new state
15.2.2. Defining a view state's overrides
15.3. Switching View States at Runtime
15.4. Declaring View States in MXML
15.4.1. Adding components
15.4.2. Removing components
15.4.3. Overriding properties and styles
15.4.4. Overriding event handlers
15.5. Declaring View States with ActionScript
15.5.1. Setting override properties
15.5.2. Overriding event handlers
15.6. Managing View States in Components
15.7. Using Transitions
15.7.1. Declaring a transition
15.7.2. Using Parallel and Sequence effects in transitions
15.8. Summary
III. Working with Data
16. Modeling and Managing Data
16.1. Creating a Data Model
16.1.1. Using the <mx:Model> tag
16.2. Using Value Objects
16.2.1. Using the New ActionScript Class wizard
16.2.2. Value object class syntax
16.2.3. Instantiating value object classes
16.3. Using Data Collections
16.3.1. Declaring an ArrayCollection
16.3.2. Setting an ArrayCollection object's source property
16.3.3. Accessing data at runtime
16.3.4. Managing data at runtime
16.3.5. Using data cursors
16.4. Summary
17. Using list controls
17.1. Using Data Providers
17.1.1. Using hard-coded data providers
17.1.2. Using dynamic data providers
17.2. Controlling List Item Labels
17.2.1. Using the labelField property
17.3. List Control Events and Properties
17.4. Handling User Data Selections
17.4.1. Using the change event
17.4.2. Using the selectedItem property
17.4.3. Using the selectedIndex property
17.4.4. Selecting complex data objects
17.5. Using Custom Item Renderers
17.5.1. Using drop-in item renderers
17.5.2. Using inline renderers and editors
17.5.3. Using component item renderers
17.6. Summary
18. Using Advanced List Controls
18.1. Using the ComboBox Control
18.1.1. Using an editable ComboBox
18.1.2. Using a bindable ComboBox
18.2. Using the DataGrid Control
18.2.1. Customizing DataGrid display
18.2.2. Generating custom labels with DataGrid columns
18.3. Advanced Item Renderers and Editors
18.3.1. Using the dataChange event
18.3.2. Using item editors
18.4. Using HorizontalList and TileList Controls
18.5. Using the AdvancedDataGrid Control
18.5.1. Hierarchical data display
18.5.2. Grouping flat data
18.6. Summary
19. Using the Flex Charting Controls
19.1. Understanding Flex's Types of Charts
19.2. Declaring Chart Controls
19.3. Setting Chart Properties and Styles
19.3.1. Using pie charts
19.3.2. Using financial charts
19.3.3. Using bar, column, line, and area charts
19.4. Summary
20. Working with Data Entry Forms
20.1. Using the Form Container
20.1.1. Using the FormHeading control
20.1.2. Using the FormItem container
20.1.3. Setting a default button
20.2. Using Custom Form Components
20.2.1. Creating a custom Form component
20.2.2. Adding controls to a Form component
20.3. Validating Data Entry
20.3.1. Creating a validator object
20.3.2. Controlling validation with trigger events
20.3.3. Controlling validation with ActionScript
20.3.4. Controlling validation rules and error messages
20.4. Sharing Data with the Application
20.4.1. Modeling Form data with a value object
20.4.2. Dispatching a custom event
20.5. Summary
21. Working with HTTP Service and XML
21.1. Using RPC and REST Architectures
21.1.1. Understanding the Representational State Transfer architecture
21.1.2. Understanding the Remote Procedure Call architecture
21.2. Declaring and Configuring HTTP Service Objects
21.2.1. Creating an HTTP Service object
21.2.2. Essential HTTP Service properties
21.3. Sending and Receiving Data
21.3.1. Understanding asynchronous communications
21.3.2. Handling HTTP Service responses
21.3.3. Working with Item Responder and Async Token
21.4. Working with Value Objects
21.5. Passing Parameters to Server Pages
21.5.1. Using named parameters
21.5.2. Using bound parameters
21.6. Handling Cross-Domain Policy Issues
21.7. Summary
22. Managing XML with E4X
22.1. Using XML Classes
22.1.1. Creating an XML object
22.1.2. Using the XMLList class
22.1.3. Using the XMLListCollection class
22.2. Using E4X Expressions
22.2.1. Extracting data from XML objects
22.2.2. Modifying data in XML objects
22.3. Working with Namespaces
22.4. Summary
IV. Integrating Flex Applications with Application Servers and the Desktop
23. Working with SOAP-Based Web Services
23.1. Understanding SOAP
23.2. Understanding WSDL
23.3. Using the Web Service Component
23.3.1. Installing Cold Fusion 8
23.3.2. Creating a Web Service object
23.3.3. Handling Web service results
23.3.4. Passing parameters to Web service operations
23.4. Using Web Service Introspection
23.4.1. Importing a Web service
23.4.2. Managing Web services
23.4.3. Using generated Web service proxy classes
23.5. Summary
24. Integrating Flex Applications with BlazeDS and Java
24.1. Using BlazeDS
24.1.1. Understanding supported platforms
24.1.2. Getting started with BlazeDS
24.2. Creating Flex Projects for Use with BlazeDS
24.3. Using the Proxy Service
24.3.1. Configuring the Proxy Service
24.3.2. Using the default destination
24.3.3. Using named destinations
24.4. Using the Remoting Service
24.4.1. Creating and exposing Java classes
24.4.2. Configuring Remoting Service destinations
24.5. Using the RemoteObject Component
24.5.1. Instantiating the RemoteObject component
24.5.2. Calling remote methods
24.5.3. Handling RemoteObject results
24.5.4. Passing arguments to remote methods
24.5.5. Passing data between ActionScript and Java
24.5.6. Using value object classes
24.6. Summary
25. Using the Message Service with BlazeDS
25.1. Understanding the Message Service
25.2. Configuring Messaging on the Server
25.2.1. Configuring channels for messaging
25.2.2. Configuring messaging adaptors and destinations
25.3. Creating a Flex Messaging Application
25.3.1. Creating a Flex project
25.3.2. Sending messages
25.3.3. Receiving and processing messages
25.4. Sending and Receiving Complex Data
25.5. Filtering Messages on the Server
25.5.1. Using the selector property
25.5.2. Using subtopics
25.6. Tracing Messaging Traffic
25.7. Summary
27. Using the ColdFusion Extensions for Flex Builder
27.1. Understanding ColdFusion Extension Features
27.2. Installing the ColdFusion Extensions for Flex Builder
27.3. Configuring RDS Servers
27.4. Connecting to ColdFusion Data Sources
27.4.1. Inspecting a data source
27.4.2. Viewing table data
27.4.3. Using the Visual Query Builder
27.5. Using the CFC Value Object Wizard
27.5.1. Preparing to use the CFC Value Object wizard
27.5.2. Running the CFC Value Object wizard
27.5.3. Understanding generated value object classes
27.5.4. Using the gateway CFC
27.5.5. A conclusion about the CFC Value Object wizard
27.6. Summary
28. Integrating Flex Applications with ASP.NET
28.1. Installing ASP.NET
28.2. Creating an XML Web Service
28.2.1. Creating a gateway file
28.2.2. Creating a code-behind module
28.3. Generating a Web Service in Flex Builder 3
28.3.1. Creating a Flex project with ASP.NET
28.3.2. Creating an SQL Server database connection
28.3.3. Generating a Flex/ASP.NET application
28.3.4. Understanding and using the generated code
28.4. Building Web Services with Visual Web Developer 2008
28.4.1. Creating a Web service
28.4.2. Configuring the development Web server
28.4.3. Testing a Web service
28.5. Exchanging Data with XML Web Services
28.5.1. Setting up the sample files
28.5.2. Returning data from .NET
28.5.3. Passing value objects to .NET service operations
28.6. Summary
29. Integrating Flex Applications with PHP
29.1. Installing PHP
29.1.1. Installing WAMP on Windows
29.1.2. Managing WAMP servers
29.1.3. Installing MAMP on Mac OS X
29.1.4. Managing MAMP servers
29.2. Creating a Flex Project for Use with PHP
29.3. Using PHP with HTTPService and XML
29.3.1. Using the PHP SimpleXML extension
29.3.2. Retrieving XML data with HTTPService
29.4. Generating PHP Code with Flex Builder 3
29.4.1. Importing a database to MySQL
29.4.2. Creating a MySQL database connection
29.4.3. Generating a Flex/PHP application
29.4.4. Understanding and using the generated code
29.5. Using PHP and Remoting with AMFPHP
29.5.1. Installing AMFPHP
29.5.2. Creating an AMFPHP service in PHP
29.5.3. Configuring AMFPHP Remoting in Flex Builder
29.5.4. Calling an AMFPHP service with RemoteObject
29.5.5. Returning complex data from AMFPHP
29.6. Summary
30. Deploying Desktop Application with AIR
30.1. Understanding AIR Architecture
30.2. Installing the Adobe Integrated Runtime
30.2.1. Downloading the AIR installer
30.2.2. Installing and uninstalling AIR on Windows
30.2.3. Installing and uninstalling AIR on Mac OS X
30.3. Creating a Flex Desktop Application
30.3.1. Creating a Flex desktop application project
30.3.2. Using the application descriptor file
30.3.3. Packaging a release version of an AIR application
30.3.4. Installing AIR applications
30.3.5. Uninstalling AIR applications
30.4. Flex Application Tips and Tricks with AIR
30.4.1. Debugging AIR applications in Flex Builder
30.4.2. Working with HTML-based content
30.4.3. Using the WindowedApplication component
30.4.4. Creating Remoting channels at runtime
30.5. A Conclusion about AIR
30.6. Summary
Glossary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
15. Managing View States
Next
Next Chapter
16. Modeling and Managing Data
Part III. Working with Data
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset