Clearinterval; Client (Object) - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

clearInterval

Availability
Flash Communication Server MX.
Usage
clearInterval(intervalID)
Parameters
A unique ID returned by a previous call to the
intervalID
Returns
Nothing.
Description
Method (global); cancels a time-out that was set with a call to the
Example
The following example creates a function named
method, which is called every 1000 milliseconds and sends the message "interval called" to the
Output window. The
variable
intervalID
line of code, the
call:
setInterval
function callback(){
trace("interval called");
}
var intervalID;
intervalID = setInterval(callback, 1000);
// sometime later
clearInterval(intervalID);

Client (object)

The Client object lets you handle each user, or client, connection to a Flash Communication
Server application instance. The server automatically creates a Client object when a user connects
to an application; the object is destroyed when the user disconnects from the application. Users
have unique Client objects for each application to which they are connected. Thousands of Client
objects can be active at the same time.
You can use the properties of the Client object to determine the version, platform, and IP address
of each client. You can also set individual read and write permissions to various application
resources such as Stream objects and shared objects. Use the methods of the Client object to set
bandwidth limits and call methods in client-side scripts.
When you call
NetConnection.call
executes in the server-side script must be a method of the Client object. In your server-side script,
you must define any method that you want to call from the client-side script. You can also call any
methods you define in the server-side script directly from the Client object instance in the server-
side script.
24
method returns a unique identifier that is assigned to the
setInterval
. The identifier allows you to cancel a specific
variable is passed to the
intervalID
from a client-side ActionScript script, the method that
setInterval
setInterval
and passes it to the
callback
setInterval
method to cancel the
clearInterval
method.
method.
setInterval
call. In the last

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents