Join David Gassner for an in-depth discussion in this video Passing data to a detail view, part of Flash Builder 4.5 and Flex 4.5 New Features.
You move data around in a mobile application by passing it from view to view.…I'll show you how to do this in a version of the application called DetailViews,…which you can import from the 04_ mobile directory of the Exercise Files.…In the TourList component of this application, I'm already retrieving data…from an XML file and then displaying that data using a list control with this…custom item renderer.…The item renderer is to based on the IconItemRenderer component.…So when I view the application and click the Begin button to look at the list,…the user can then select an item from the list.…
I'm working on my emulator on my Mac so I'm working with my mouse.…But the user on a mobile device will select using a touch.…Regardless of how the data is selected, the list control will dispatch a change…event when the user clicks an item or touches it.…So I'm going to respond to that click event by moving to the new view,…TourDetail, and passing the selected data into it all the same time.…I'll go back to the code to the List control opening tag.…
Recommended prerequisite: Flash Builder 4 and Flex 4 Essential Training.
- Coding with Quick Assist
- Using code completion on metadata tags and states
- Using new Design mode configuration and view capabilities
- Using the Spark versions of the DataGrid, Form, and Image components
- Creating a Flex project for Android applications
- Handling navigation in a view-based mobile application
- Using the Flash Catalyst CS5.5/Flash Builder 4.5 workflow
Skill Level Intermediate
Q: Is Flash Builder compatible with Mac OS X 10.7 (Lion)?
Q: I'm using the most recent versions of Flash Builder and Flex. The projects provided in this course's exercise files don't run correctly. How do I get the code working?
A: The course's exercise files were built for the original release of Flash Builder and Flex 4.5. There are two potential issues: the version of the Flex SDK linked into each project and the version of Flash Player you have installed on your system.
For each project, follow these steps after importing it into Flash Builder:
- In the Package Explorer view, right-click on the project name and choose Properties.
- Click Flex Compiler.
- Change the Flex SDK Version to Use default SDK.
- Click OK.
- The project should now compile correctly.
- Open Windows Explorer (Windows) or Finder (Mac).
- Navigate to the Flash Player installation folder.
- Open the player subfolder.
- Open the subfolder for your operating system (Mac or Windows).
- Open the version subfolder.
- If running on Mac, open the DMG file and install the Flash Player application.
- If running on Windows, run the Flash Player installer executable for whichever browser you use for previewing Flex applications.