Server-Side Communication ActionScript > Using naming conventions > Avoiding reserved commands |
![]() ![]() ![]() |
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
.
![]() ![]() ![]() |