Adobe ATMOSPHERE User Manual page 267

Table of Contents

Advertisement

Lastly, successful synchronization requires that a consecutive series of steps be followed for establishing shared object
names and their conditions. The Atmosphere website shows an example of this technology, and will aid greatly in
creating your own solution.
*(Note that Adobe provides a limited quantity of default server power for handling avatar, chat, and object
synchronization. See documentation elsewhere regarding).
Global Properties
chat
A PrintDevice representing the chat window in the Atmosphere Player.
chat.print("Hello World");
Properties
avatarID
A GUID for your avatar in the current world. This property will allow you to send messages to your remote
avatar more easily. Note that it is not possible to obtain the GUID of another avatar.
myCurrentAvatarID = avatarID;
isConnected
This property will return true once a connection with the server has been established.
if (isConnected) { ... }
worldID
A GUID for the world you are currently visiting.
myCurrentWorldID = worldID;
Methods
input(a, b, c, ...)
Concatenates the parameters together into a single string and enters it as if the user had typed it in. Note that
the string will not be displayed in your local chat window. This method is presently only available for the 'chat'
device, and only for Local Avatar scripts.
chat.input("Hello Everybody!");
print(a, b, c, ...)
Prints the specifi ed strings or values. Note that this method is not available for your Remote Avatar script.
status.print("All is well.");
createSharedObject(str objectName)
Creates a JavaScript object of the given name on the chat server, and which is shared by all visitors. This function
will trigger the callback 'onSharedPropertyChange(sName, sProp, sValue)' for the sender only. Note that both
'sProp' and 'sValue' will be empty strings for this fi rst callback.
255
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents