The following are the faults that can occur with the
FaultCode
XMLConnector.Not.XML
XMLConnector.Parse.Error
XMLConnector.No.Data.Received
XMLConnector.Results.Parse.Error
XMLConnector.Params.Missing
Example
The following example defines a function
function to the
addEventListener
var statusFunction = function (stat) {
trace(stat.code);
trace(stat.data.faultcode);
trace(stat.data.faultstring);
};
xcon.addEventListener("status", statusFunction);
902
Chapter 6: Components Dictionary
status
FaultString
params is not an XML
object
params had XML
parsing error NN.
no data was received
from the server
received data had an
XML parsing error NN
Direction is 'send' or
'send/receive', but
params are null.
statusFunction
event handler:
event:
Notes
The
value must be an
params
ActionScript XML object.
The
property of the
status
XML object had a nonzero value NN.
To see the possible errors NN, see
in Flash ActionScript
XML.status
Language Reference.
Due to various browser limitations,
this message can mean either (a) the
server URL was invalid, did not
respond, or returned an HTTP error
code; or (b) the server request
succeeded but the response was 0
bytes of data. To work around this
restriction, design your application so
that the server never returns 0 bytes
of data. If you receive the fault code
XMLConnector.No.Data.Received
you will know that there was a server
error, and can inform the user
accordingly.
The received XML was not valid, as
determined by the Flash Player built-
in XML parser. To see the possible
errors NN, see
XML.status
ActionScript Language Reference.
for the
event and assigns the
status
params
,
in Flash
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?