
1
Server-Side ActionScript Language
Reference
Use Server-Side ActionScript to write server-side code for an Adobe Flash Media Interactive Server application. You
can use Server-Side ActionScript to control login procedures, control events, communicate with other servers, allow
and disallow users access to various server-side application resources, and let users update and share information.
Server-Side ActionScript is Adobe’s name for JavaScript 1.5. Flash Media Interactive Server has an embedded Java-
Script engine that compiles and executes server-side scripts. This Server-Side ActionScript Language Reference
documents the Flash Media Interactive Server host environment classes and functions. You can also use core Java-
Script classes, functions, statements, and operators. For more information, see the Core JavaScript 1.5 Reference at
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference. For more information about JavaScript, see
“About JavaScript” in the Mozilla Developer Center at http://developer.mozilla.org/en/docs/About_JavaScript.
Server-Side ActionScript is similar, but not identical, to ActionScript 1.0. Both languages are based on ECMAScript
(ECMA-262) edition 3 language specification. Server-Side ActionScript runs in the Mozilla SpiderMonkey engine
embedded in Flash Media Interactive Server. ActionScript 1.0 runs in AVM1 (ActionScript Virtual Machine 1) in
Adobe Flash Player. SpiderMonkey implemented the ECMAScript specification exactly and Flash Player AVM1 did
not. The biggest difference between Server-Side ActionScript and ActionScript 1.0 is that Server-Side ActionScript
is case-sensitive.
Global functions
The following functions are available anywhere in a server-side script:
clearInterval()
clearInterval(intervalID)
Stops a call to the setInterval() method.
Availability
Flash Communication Server 1
Signature Description
clearInterval() Stops a call to the setInterval() method.
getGlobal() Provides access to the global object from the secure.asc file while the file is loading.
load() Loads a Server-Side ActionScript file (ASC) or JavaScript file (JS) into the main.asc file.
protectObject() Protects the methods of an object from application code.
setAttributes() Prevents certain methods and properties from being enumerated, writable, and deletable.
setInterval() Calls a function or method at a specified time interval until the clearInterval() method is called.
trace() Evaluates an expression and displays the value.
Commenti su questo manuale