Example
The following example opens a stream
Because no value is passed to the
// Start recording.
s = Stream.get("foo");
if (s){
s.play("sample");
s.record();
}
// Stop recording.
s = Stream.get("foo");
if (s){
s.record(false);
}
Stream.send()
Availability
Flash Communication Server MX 1.0.
Usage
myStream.send(handlerName, [p1, ..., pN])
Parameters
Calls the specified handler in client-side ActionScript code. The
handlerName
value is the name of a method relative to the subscribing Stream object. For
handlerName
example, if
handlerName
invoked with all the
p1, ..., pN
and
NetConnection.call()
have the form of
object/method
Do not use a built-in method name for a handler name. For example, the subscribing
stream will close if the handler name is
Parameters of any ActionScript type, including references to other
p1, ..., pN
ActionScript objects. These parameters are passed to the specified handler when it is executed
on the Flash client.
Returns
A Boolean value of
true
156
Server-Side ActionScript Language Reference
and, when it is open, plays
s
method, the default value,
record
is
, the
doSomething
parameters. Unlike the method names in
, the handler name can be only one level deep (that is, it cannot
).
close
if the message was sent to the client;
method at the stream level is
doSomething
.
false
and records it.
sample
, is passed.
record
Client.call()
otherwise.
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?