Scene in Anark Studio 2.5

Root object representing the scene.

Inherits from:

Instance Properties

name type description
backgroundColor Color The background color for the scene.
constructor Object A reference to the constructor class for the current object instance. [from Object]
id Number (read only) Unique ID for the scene.
layers Collection (read only) All Layer objects in the scene.
loopPresentation Boolean Should the presentation loop?
presentation Presentation (read only) The currently-active Presentation object.
prototype Object The prototype for a class. [from Object]
type String (read only) The string 'Scene'.

Instance Methods

name returns description
attach(layerObject) (none) Attach a layer underneath the scene.
clear() (none) Removes all layers from the scene.
detach(layerObject) (none) Remove a layer from the scene.
hasOwnProperty(propertyOrMethodName) Boolean Determines if the object/instance itself has the named property or method. [from Object]
isPrototypeOf(instanceToTest) Boolean Determines if the calling object prototype is in the inheritance chain for the supplied argument. [from Object]
propertyIsEnumerable(propertyOrMethodName) Boolean Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration. [from Object]
toLocaleString() String For most objects, the same as toString() unless explicitly overridden. [from Object]
toString() String Returns a string representation of the object. [from Object]
valueOf() String Returns the internal this value of the object. [from Object]

Description

The scene is the root object, forming an access point to query for data. The scene's primary property is an ordered list of Layer objects that forms the description of all information to be drawn to the screen. The scene object has no constructor because it is always available as the global 'scene' variable.