Establishing the connection in the HTML file enables you to change it without needing to
republish the application.
After creating the
getCatergories()
Total Sales label on the DataGrid component, and assigns a RelayResponder object to the
property of the
responder
RelayResponder specifies the object (
and the fault handling method ("
condition returned by the
addEventListener()
event occurs.
onReveal()
The
onReveal()
initialization
,
"Active"
"Name"
information returned from the customer's database. The next line, shown here, registers the
onCustGrid_Change()
customers_grd
customers_grd.addEventListener( "change", onCustGrid_Change );
Next, the
onReveal()
variable to
initialized
updateDetails()
The
updateDetails()
when the customer selected in the DataGrid component changes. This information includes the
customer description, the Total Sales amount, and the logo. This function is called by the
onCustGrid_Change()
refreshCustomerData()
The
refreshCustomerData()
service (referenced as
Category ComboBox component.
This function calls the RelayResponder constructor to establish the
as the function to receive the results of this call, and the
function to receive an error or fault condition.
onCustGrid_Change()
The
onCustGrid_Change()
DataGrid component changes. This function calls the
documents the call to this function. Then it calls the
Customer Details section.
Using the Flash Remoting ActionScript API in the CustomerInfoExampleAPI application
Service object,
custService
function to retrieve a record set of all categories, sets the alignment for the
PendingCall object for the call to
pc
this
onCategoryFault
getCategories()
to register the
onReveal()
function performs initialization tasks for the CustomerInfoFormAPI class if the
variable is not equal to
, and "
TotalSales"
function as the event handler to be called if a change occurs in the
DataGrid component.
function aligns text for the Total and the Total Sales labels and sets the
.
true
function updates the data displayed in the Customer Details section
function.
function calls the
) to retrieve the customers for the selected item in the
custService
function is the event handler that is called when the selection in the
CustomerInfoFormAPI()
), the result handling method ("
") that will handle the result or fault
function. RelayResponder calls
method, the method to call when a
. These tasks include defining the columns (
true
) for the DataGrid component that displays the customer
getCustomers()
onCategoryFault()
NetDebug.trace()
updateDetails()
calls the c
ustService.
The
getCategories().
onCategoryData
function of the customerData
onCategoryData()
function as the
function to
function to update the
"),
reveal
,
"ID"
function
51
Need help?
Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?