
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
118
|
Chapter 4: Applications, Instances, and Server-Side ActionScript
Two instances should never directly attempt to update the same
shared object. If more than one instance needs to use a shared object,
it should be done via a NetConnection between the instances.
Usually, one instance is selected as the owner of the shared object or stream and the
other instances connect to it in order to access its resources. Interinstance communi-
cations is covered in detail later in this chapter and in Chapter 16.
Differences Between Flash ActionScript and
Server-Side ActionScript
As alluded to earlier in this chapter and the Preface, there are two distinct types of
ActionScript: client-side ActionScript—which includes both ActionScript 1.0 and
ActionScript 2.0—and the server-side version, known as Server-Side ActionScript.
Client-side ActionScript is used to create .swf movies, which run in the Flash Player
on the user’s machine. Server-Side ActionScript is stored in .asc files that run on the
FlashCom Server.
Since Flash 5, client-side ActionScript has been based on the ECMA (European Com-
puter Manufacturers Association) standards, as is JavaScript. The standard language
is named ECMAScript and is defined in ECMA-262 available at: http://www.ecma-
international.org. Client-side Flash ActionScript ...