MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1466

Components language reference
Table of Contents

Advertisement

Edition
Flash MX Professional 2004.
Usage
componentInstance.suppressInvalidCalls
Description
Property; indicates whether to suppress a call if parameters are invalid. If this property is
the
method does not perform a call if the bound parameters fail the validation. A
trigger()
event is emitted, with the code
status
takes place, 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;
case 'StatusChange' :
break;
default :
trace("Error: "+error.code);
break;
}
};
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("result", res);
wsConn.addEventListener("status", stat);
wsConn.WSDLURL = "http://www.flash-mx.com/mm/tips/tips.cfc?wsdl";
wsConn.operation = "getTipByProduct";
// wsConn.params = ["Flash"];
wsConn.suppressInvalidCalls = true;
wsConn.trigger();
To display a tip instead of an error, uncomment the line
1462
WebServiceConnector component (Flash Professional only)
. If this property is
InvalidParams
wsConn.params = ["Flash"];
,
true
, the call
false
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents