Onreveal() - MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual

Using flash remoting for flash mx 2004 actionscript 2.0
Table of Contents

Advertisement

// handles the display of the fault information related to the category data
// request to the user
function onCategoryDataFault( status:Object ):Void {
// notify the user of the problem
if( status.code == "fault" ) {
Alert.show( "Couldn't retrieve category data.", "Error",
Alert.OK, this );
mx.remoting.debug.NetDebug.trace({level:"None",
message:"There was a problem: " + status.data.faultstring });
}
}
private var customerData_con:RemotingConnector;
private var categoryData_con:RemotingConnector;
private var customers_grd:DataGrid;
private var custCat_cmbo:ComboBox;
private var custInfo_txt:TextArea;
private var totalRec_txt:TextInput;
private var totalSales_label:Label;
private var custLogo_ldr:Loader;
private var initialized:Boolean;
}
CustomerInfoFormCon()
The
CustomerInfoFormCon()
method to initialize the Form super class. It also sets the variable
for the initial call to the
The
addEventListener()
event.
reveal

onReveal()

The
onReveal()
These tasks include defining the columns (
DataGrid component that displays the customer information returned from the database. The
next line, shown here, registers the
called if a change occurs in the
customers_grd.addEventListener( "change", onCustGrid_Change );
Next, the
onReveal()
Remoting debug support. Then it aligns text for the Total and the Total Sales labels and registers
the following functions as event handlers:
onCategoryDataFault()
onCategoryData()
onCustomerData()
onCustomerDataFault()
60
Chapter 3: Using the RemotingConnector component (Flash Professional only)
function is the constructor for the class. It calls the
method, which performs initialization tasks for this class.
onReveal()
function registers the
function performs initialization tasks for the CustomerInfoFormCon class.
onCustGrid_Change()
customers_grd
function calls the
to handle a status outcome for an access on Category data
to handle the result of an access on Category data
to handle the result of an access on Customer data
to handle a status outcome for an access on Customer data.
method as the event handler for a
onReveal()
,
,
"ID"
"Active"
"Name"
function as the event handler to be
DataGrid component.
NetDebug.initialize()
super()
to the value
initialized
, and "
TotalSales"
method to initialize Flash
false
) for the

Advertisement

Table of Contents
loading
Need help?

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?

This manual is also suitable for:

Flash remoting mx

Table of Contents