Using the RemotingConnector in the CustomerInfoExampleCon application
61
Finally, the
onReveal()
function calls the
trigger()
method for the categoryData_con
RemotingConnector object to connect to the service, retrieve the Category data for the
ComboBox component, and execute the data bindings to populate it.
updateDetails()
The
updateDetails()
function updates the text, the total sales, and the logo in the Customer
Details section of the user interface. This function is called by the
onCustGrid_Change()
function.
onCustGrid_Change()
As noted earlier, the
onCustGrid_Change()
function is the event handler that is called when the
selection in the DataGrid changes. This function calls the
NetDebug.trace()
function to display
a debug message that documents the call to this function. Then it calls the
updateDetails()
function to update the Customer Details section.
onCustomerData()
The
onCustomerData()
function handles the results of a request to retrieve Customer data and
populate the DataGrid component. It sets the selection index to 0 to make the first customer in
the list the current selection. Then it calls the
updateDetails()
function to update the
Customer Details section for the selected customer.
onCategoryData()
The
onCategoryData()
function handles the result of a request to access Category data. This
function forces the RemotingConnector for Customer data (
customerData_con)
to get the
appropriate customers for the currently selected category.
onCustomerDataFault()
The
onCustomerDataFault()
function handles the fault outcome of a request for Customer
data. It calls the
NetDebug.trace()
function to display a message and report the status.
onCategoryDataFault()
The
onCategoryDataFault()
function handles the fault outcome of a request for Category data.
It calls the
NetDebug.trace()
function to display a message and report the status.
Содержание FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT...
Страница 1: ...Using Flash Remoting for Flash MX 2004 ActionScript 2 0...
Страница 8: ...8 Contents...
Страница 62: ...62 Chapter 3 Using the RemotingConnector component Flash Professional only...
Страница 142: ...142 Chapter 7 Using Flash Remoting for Java...