MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 874

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

faultcode
Unknown.Call.Failure
Client.Disconnected
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);
};
wsc.addEventListener("status", statusFunction);
WebServiceConnector.suppressInvalidCalls
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
componentInstance.suppressInvalidCalls
Description
Property; indicates whether to suppress a call if parameters are invalid. If this property is
method does not perform a call if the bound parameters fail the validation. A
trigger()
event is emitted, with the code
using the invalid data as required.
Example
This example displays an error because the required parameters are not being passed. Drag a
WebServiceConnector component into your library, and enter the following code on Frame 1 of
the Timeline:
import mx.data.components.WebServiceConnector;
var res:Function = function (evt:Object) {
trace(evt.target.results);
};
var stat:Function = function (error:Object) {
switch (error.code) {
case 'InvalidParams' :
trace("Unable to connect to remote Web Service: "+error.code);
break;
874
Chapter 6: Components Dictionary
faultstring
WebService invocation failed
for unknown reasons
Could not load imported
schema
statusFunction
event handler:
. If this property is
InvalidParams
detail
Unable to load schema; if
currently online, please verify
the URI and/or format of the
schema at (XXXX)
for the
event and assigns the
status
, the call takes place,
false
, the
true
status

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents