MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 62

Table of Contents

Advertisement

Save the ActionScript file.
3.
Switch to the flexstore.mxml file.
4.
In Code view, assign the event handler to the application's initialize event by locating the
5.
<mx:Application>
<mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="initApp()"
...
When the application is initialized, the
Save the flexstore.mxml file.
6.
Verify that the web service works
Before you continue, you decide to make sure the web service is called when the application is
initialized and data is successfully passed to the application. You want to catch and fix any data
problems early. Since the data is not yet bound to any visual controls that you could use to check,
you use the Network Monitor in Flex Builder to make sure the web service is passing catalog data
to your application.
When enabled, the Network Monitor intercepts all data transactions with the server and displays
the information in a panel.
Make sure your flexstore.mxml file is open in Flex Builder.
1.
In the Network Monitor panel (Window > Network Monitor), click the Enable Flex Network
2.
Monitor checkbox on the top edge of the panel.
Click the Filter Settings button on the panel's sidebar and deselect the following event types:
3.
trace, HTTP, XML, AMF, and RemoteObject.
You don't want to track these events in this situation, but you do want to track SOAP and
WebService events.
Click the Run button on the Document toolbar.
4.
While the Flex server compiles the flexstore.mxml file and Flex Builder displays it in the
embedded browser, the Network Monitor monitors and lists all the captured events of the type
you specified. The left side of the panel displays the event types while the right side displays
specific information for the selected event.
62
Chapter 2: Flex Builder Tutorials
tag, and adding the following property (shown in bold type):
initApp()
function is called.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents