144
Server-Side ActionScript Language Reference
SOAPFault.faultstring
Availability
Flash Media Server 2.
Usage
mySOAPFault
.faultstring
Description
Property; a string indicating the human-readable description of the error.
Example
The following example shows the fault code in a text field if the Web Service Definition
Language (WSDL) fails to load:
// Prepare the WSDL location:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
// Instantiate the web service object using the WSDL location:
stockService = new WebService(wsdlURI);
// Handle the WSDL parsing and web service instantiation event.
stockService.onLoad = function(wsdl){
wsdlField.text = wsdl;
}
// If the wsdl fails to load the onFault event is fired:
stockService.onFault = function(fault){
wsdlField.text = fault.faultstring;
}
Stream class
Availability
Flash Communication Server MX.
The Stream class lets you handle each stream in a Flash Media Server application. A
stream
is a
one-way connection between Flash Player and Flash Media Server, or between two servers.
Flash Media Server automatically creates a Stream object with a unique name when
NetStream.play
or
NetStream.publish
are called in a client-side script. You can also create
a stream in server-side ActionScript by calling
Stream.get()
. A user can access multiple
streams at the same time, and there can be hundreds or thousands of Stream objects active at
the same time.