Scene in Anark Studio 2.5

Root object representing the scene.

Inherits from:

Instance Properties

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

Instance Methods

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