Example
The following example defines a function
function to the
addEventListener
var sendFunction = function (sendEnv) {
sendEnv.target.params = [newParam_txt.text];
};
wsc.addEventListener("send", sendFunction);
WebServiceConnector.status
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
componentInstance.addEventListener("status", myListenerObject)
Description
Event; broadcast when a call to a web service is initiated, to inform the user of the status of the
operation.
The parameter to the event handler is an object with the following fields:
•
: the string
type
•
: a reference to the object that emitted the event (for example, a
target
WebServiceConnector component)
•
: a string giving the name of the condition that occurred
code
•
: an object whose contents depend on the code
data
The following are the codes and associated data available for the
Code
StatusChange
CallAlreadyInProgress
InvalidParams
872
Chapter 6: Components Dictionary
event handler:
"status"
Data
{callsInProgress:nnn}
No data
No data
for the
sendFunction
Description
This event is emitted whenever a web service call
starts or finishes. The item nnn gives the number
of calls currently in progress.
This event is emitted if
multipleSimultaneousAllowed
is already in progress. After this event occurs, the
attempted call is considered complete, and there
is no
or
result
send
This event is emitted if the
found that the
params
valid data. If the
, the attempted call is considered complete,
true
and there is no
result
event and assigns the
send
event:
status
is called,
trigger()
is
false
event.
method
trigger()
property did not contain
suppressInvalidCalls
or
event.
send
, and a call
property is
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?