
Server-Side Communication ActionScript 7
Using JavaScript syntax
You must follow all syntax rules of JavaScript. For example, JavaScript is case-sensitive and does
not allow punctuation other than underscores (_) and dollar signs ($) in names. You can use
numbers in names, but names cannot begin with a number.
Avoiding reserved commands
Flash Communication Server has reserved commands that you cannot use in a script. These
commands are either methods that belong to the client-side NetConnection object or methods
that belong to the server-side Client object. This means that if you have a NetConnection object
on the client (player), you cannot make the following call:
nc.call( "reservedCmd", ... );
In this call, "reservedCmd" is any of the following commands: closeStream, connect,
createStream, deleteStream, onStatus, pause, play, publish, receiveAudio,
receiveVideo, or seek. It also cannot be any of the server-side Client object methods:
getBandwidthLimit, setBandwidthLimit, getStats, and ping.
Contents of the dictionary
All dictionary entries are listed alphabetically. However, methods, properties, and event handlers
that are associated with an object are listed along with the object’s name—for example, the
name
property of the Application object is listed as Application.name. The following table helps you
locate these elements.
ActionScript element See entry
acceptConnection Application.acceptConnection
addHeader NetConnection.addHeader
agent Client.agent
Application Application (object)
bufferTime Stream.bufferTime
call Client.call, NetConnection.call
clear SharedObject.clear, Stream.clear
clearInterval clearInterval
clearSharedObject Application.clearSharedObjects
clearStreams Application.clearStreams
Client Client (object)
clients Application.clients
close NetConnection.close, SharedObject.close
"commandName" Client."commandName"
connect NetConnection.connect
disconnect Application.disconnect
flush SharedObject.flush
get SharedObject.get, Stream.get
Komentarze do niniejszej Instrukcji