Namespace createjs
createjs
Defined in: base.js.
Constructor Attributes | Constructor Name and Description |
---|---|
The top-level namespace of this library.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
createjs.AudioContext
The constructor of the AudioContext class.
|
<static> |
createjs.BlobBuilder
The constructor of the BlobBuilder class.
|
<static> |
createjs.CACHE_DATABASE
Represents the database name used by our network cache.
|
<static> |
createjs.CACHE_TABLE
Represents the table name used by our network cache.
|
<static> |
createjs.COMPILED
Represents whether this library is compiled with the Closure compiler.
|
<static> |
createjs.DEBUG
Represents whether to enable debugging features.
|
<static> |
createjs.DEFAULT_TEXTURE
Represents the default texture format.
|
<static> |
createjs.DENA_BUILD_NUMBER
Represents the build number of this library.
|
<static> |
createjs.DENA_MAJOR_VERSION
Represents the major version of this library.
|
<static> |
createjs.DENA_MINOR_VERSION
Represents the minor version of this library.
|
<static> |
createjs.DENA_PATCH_LEVEL
Represents the patch level of this library.
|
<static> |
createjs.FALSE
An alias of false.
|
<static> |
createjs.FrameCommand
The commands used for communicating with a createjs.FramePlayer object,
which runs on an
|
<static> |
createjs.global
A reference to the global context.
|
<static> |
createjs.MAJOR_VERSION
Represents the major version of the original CreateJS library.
|
<static> |
createjs.MINOR_VERSION
Represents the minor version of the original CreateJS library.
|
<static> |
createjs.origin_
The current origin.
|
<static> |
createjs.SUPPORT_AMD
Represents whether to create a module compliant with AMD (Asynchronous Module
Definition).
|
<static> |
createjs.TRUE
An alias of true.
|
<static> |
createjs.URL
The URL interface.
|
<static> |
createjs.USE_CACHE
Represents whether this library uses a network cache.
|
<static> |
createjs.USE_FRAME
Represents whether the createjs.Sound class uses an
|
<static> |
createjs.USE_PIXEL_TEST
Represents whether to read pixels in hit-testing.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.abs(n)
Returns the absolute value of the specified number.
|
<static> |
createjs.assert(condition)
Throws an error if the specified condition is false.
|
<static> |
createjs.atan2(y, x)
Returns an approximate value of the arctangent of y / x in degrees.
|
<static> |
createjs.castArray(value)
Changes the type of the specified variable to Array.
|
<static> |
createjs.castArrayBuffer(value)
Changes the type of the specified variable to ArrayBuffer.
|
<static> |
createjs.castBoolean(value)
Changes the type of the specified variable to boolean.
|
<static> |
createjs.castCanvas(value)
Changes the type of the specified variable to HTMLCanvasElement.
|
<static> |
createjs.castFunction(value)
Changes the type of the specified variable to Function.
|
<static> |
createjs.castNumber(value)
Changes the type of the specified variable to number.
|
<static> |
createjs.castObject(value)
Changes the type of the specified variable to Object.
|
<static> |
createjs.castString(value)
Changes the type of the specified variable to string.
|
<static> |
createjs.ceil(n)
Returns the smallest integer greater than or equal to the specified number.
|
<static> |
createjs.cos(angle)
Returns an approximate value of the Math.cos() method.
|
<static> |
createjs.createCanvas()
Creates a
|
<static> |
createjs.createImage()
Creates an
|
<static> |
createjs.debug(message)
Writes a log message to a console.
|
<static> |
createjs.error(message)
Throws an error.
|
<static> |
createjs.exportObject(name, object, methods, opt_statics)
Exposes an object and its member methods to the global namespace path.
|
<static> |
createjs.exportStatic(name, methods)
Exposes static methods to the global namespace path.
|
<static> |
createjs.floor(n)
Returns the largest integer less than or equal to the specified number.
|
<static> |
createjs.getArray(value)
Changes the type of the specified variable to Array only if it is an Array.
|
<static> |
createjs.getBoolean(value)
Changes the type of the specified variable to boolean only if it is a boolean
variable.
|
<static> |
createjs.getFunction(value)
Changes the type of the specified variable to Function only if it is a
Function.
|
<static> |
createjs.getNumber(value)
Changes the type of the specified variable to number only if it is a number.
|
<static> |
createjs.getObject(value)
Changes the type of the specified variable to Object only if it is an Object.
|
<static> |
createjs.getOrigin()
Returns the origin of the current location.
|
<static> |
createjs.getRenderingContext2D(canvas)
Returns the rendering context associated with a
|
<static> |
createjs.getString(value)
Changes the type of the specified variable to number only if it is a number.
|
<static> |
createjs.inherits(name, child, parent)
Inherits the prototype methods from a parent constructor into a child one.
|
<static> |
createjs.isArray(value)
Returns true if the specified variable is an Array object.
|
<static> |
createjs.isBoolean(value)
Returns true if the specified variable is a string primitive.
|
<static> |
createjs.isDefined(value)
Returns true if the specified variable is not undefined, i.e.
|
<static> |
createjs.isFunction(value)
Returns true if the specified variable is a Function object.
|
<static> |
createjs.isNaN(value)
Returns true if the specified variable is NaN.
|
<static> |
createjs.isNumber(value)
Returns true if the specified variable is a string primitive.
|
<static> |
createjs.isObject(value)
Returns true if the specified variable is an Object variable.
|
<static> |
createjs.isString(value)
Returns true if the specified variable is a string primitive.
|
<static> |
createjs.log(message)
Writes a log message to a console.
|
<static> |
createjs.max(n0, n1)
Returns the maximum value.
|
<static> |
createjs.min(n0, n1)
Returns the minimum value.
|
<static> |
createjs.notImplemented()
Writes a 'NOT IMPLEMENTED' error to the debug console.
|
<static> |
createjs.notReached()
Writes a 'NOT REACHED' message.
|
<static> |
createjs.parseFloat(value)
Converts a string variable and returns a floating-point number.
|
<static> |
createjs.parseInt(value)
Converts a string variable and returns a signed integer.
|
<static> |
createjs.parseString(value)
Converts a string primitive from a primitive variable.
|
<static> |
createjs.Region()
An interface that provides a method for comparing a point with a region.
|
<static> |
createjs.round(n)
Returns the nearest integer of the specified number.
|
<static> |
createjs.sin(angle)
Returns an approximate value of the Math.sin() method.
|
<static> |
createjs.TickListener()
An interface that implements a method that listens tick events sent by
createjs.Ticker objects.
|
<static> |
createjs.truncate(n)
Truncates the specified value.
|
<static> |
createjs.TweenObject()
An interface used for controlling a tween.
|
<static> |
createjs.TweenTarget()
An interface used by the createjs.Tween object to change properties of a
target object.
|
<static> |
createjs.typeOf(value)
Returns a string representing the type of a variable.
|
Namespace Detail
createjs
The top-level namespace of this library. All objects in this library must be
defined under this namespace to prevent exporting them to the global
namespace.
Field Detail
<static>
createjs.AudioContext
The constructor of the AudioContext class.
<static>
createjs.BlobBuilder
The constructor of the BlobBuilder class.
<static>
createjs.CACHE_DATABASE
Represents the database name used by our network cache.
<static>
createjs.CACHE_TABLE
Represents the table name used by our network cache.
<static>
createjs.COMPILED
Represents whether this library is compiled with the Closure compiler.
<static>
createjs.DEBUG
Represents whether to enable debugging features.
<static>
createjs.DEFAULT_TEXTURE
Represents the default texture format. This value is used in creating WebGL
textures from HTML elements (i.e.
elements,
<static>
createjs.DENA_BUILD_NUMBER
Represents the build number of this library. (This define is a placeholder
and overridden by make.)
<static>
createjs.DENA_MAJOR_VERSION
Represents the major version of this library.
<static>
createjs.DENA_MINOR_VERSION
Represents the minor version of this library.
<static>
createjs.DENA_PATCH_LEVEL
Represents the patch level of this library. (This define is a placeholder and
overridden by make.)
<static>
createjs.FALSE
An alias of false. (This define is used only for commenting out unused code.)
<static>
createjs.FrameCommand
The commands used for communicating with a createjs.FramePlayer object,
which runs on an
<static>
createjs.global
A reference to the global context. (This is used as a short-cut to the global
Window object.)
<static>
createjs.MAJOR_VERSION
Represents the major version of the original CreateJS library.
<static>
createjs.MINOR_VERSION
Represents the minor version of the original CreateJS library.
<static>
createjs.origin_
The current origin.
<static>
createjs.SUPPORT_AMD
Represents whether to create a module compliant with AMD (Asynchronous Module
Definition).
<static>
createjs.TRUE
An alias of true. (This define is used only for commenting out unused code.)
<static>
createjs.URL
The URL interface.
<static>
createjs.USE_CACHE
Represents whether this library uses a network cache.
<static>
createjs.USE_FRAME
Represents whether the createjs.Sound class uses an
<static>
createjs.USE_PIXEL_TEST
Represents whether to read pixels in hit-testing.
Method Detail
<static>
{number}
createjs.abs(n)
Returns the absolute value of the specified number.
- Parameters:
- {number} n
- Returns:
- {number}
<static>
createjs.assert(condition)
Throws an error if the specified condition is false.
- Parameters:
- {boolean} condition
<static>
{number}
createjs.atan2(y, x)
Returns an approximate value of the arctangent of y / x in degrees. This
method does not normalize the output angle to a range [-180,180].
- Parameters:
- {number} y
- {number} x
- Returns:
- {number}
<static>
{Array}
createjs.castArray(value)
Changes the type of the specified variable to Array.
- Parameters:
- {*} value
- Returns:
- {Array}
<static>
{ArrayBuffer}
createjs.castArrayBuffer(value)
Changes the type of the specified variable to ArrayBuffer.
- Parameters:
- {*} value
- Returns:
- {ArrayBuffer}
<static>
{boolean}
createjs.castBoolean(value)
Changes the type of the specified variable to boolean.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{HTMLCanvasElement}
createjs.castCanvas(value)
Changes the type of the specified variable to HTMLCanvasElement.
- Parameters:
- {*} value
- Returns:
- {HTMLCanvasElement}
<static>
{Function}
createjs.castFunction(value)
Changes the type of the specified variable to Function.
- Parameters:
- {*} value
- Returns:
- {Function}
<static>
{number}
createjs.castNumber(value)
Changes the type of the specified variable to number. This function does not
actually converts a string to a number, i.e. 'createjs.castNumber("0") + 1'
returns a string "01" instead of returning a number 1. (In terms of C++, this
function is similar to 'reinterpret_cast'.)
- Parameters:
- {*} value
- Returns:
- {number}
<static>
{Object}
createjs.castObject(value)
Changes the type of the specified variable to Object.
- Parameters:
- {*} value
- Returns:
- {Object}
<static>
{string}
createjs.castString(value)
Changes the type of the specified variable to string.
- Parameters:
- {*} value
- Returns:
- {string}
<static>
{number}
createjs.ceil(n)
Returns the smallest integer greater than or equal to the specified number.
- Parameters:
- {number} n
- Returns:
- {number}
<static>
{number}
createjs.cos(angle)
Returns an approximate value of the Math.cos() method.
- Parameters:
- {number} angle
- Returns:
- {number}
<static>
{HTMLCanvasElement}
createjs.createCanvas()
Creates a
- Returns:
- {HTMLCanvasElement}
<static>
{HTMLImageElement}
createjs.createImage()
Creates an
element.
- Returns:
- {HTMLImageElement}
<static>
createjs.debug(message)
Writes a log message to a console.
- Parameters:
- {string} message
<static>
createjs.error(message)
Throws an error.
- Parameters:
- {string} message
<static>
createjs.exportObject(name, object, methods, opt_statics)
Exposes an object and its member methods to the global namespace path.
- Parameters:
- {string} name
- {Object} object
-
{Object.
} methods -
{Object.
=} opt_statics
<static>
{Object}
createjs.exportStatic(name, methods)
Exposes static methods to the global namespace path.
- Parameters:
- {string} name
-
{Object.
} methods
- Returns:
- {Object}
<static>
{number}
createjs.floor(n)
Returns the largest integer less than or equal to the specified number.
- Parameters:
- {number} n
- Returns:
- {number}
<static>
{Array}
createjs.getArray(value)
Changes the type of the specified variable to Array only if it is an Array.
- Parameters:
- {*} value
- Returns:
- {Array}
<static>
{boolean}
createjs.getBoolean(value)
Changes the type of the specified variable to boolean only if it is a boolean
variable.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{Function}
createjs.getFunction(value)
Changes the type of the specified variable to Function only if it is a
Function.
- Parameters:
- {*} value
- Returns:
- {Function}
<static>
{number}
createjs.getNumber(value)
Changes the type of the specified variable to number only if it is a number.
- Parameters:
- {*} value
- Returns:
- {number}
<static>
{Object}
createjs.getObject(value)
Changes the type of the specified variable to Object only if it is an Object.
- Parameters:
- {*} value
- Returns:
- {Object}
<static>
{string}
createjs.getOrigin()
Returns the origin of the current location.
- Returns:
- {string}
<static>
{CanvasRenderingContext2D}
createjs.getRenderingContext2D(canvas)
Returns the rendering context associated with a
- Parameters:
- {HTMLCanvasElement} canvas
- Returns:
- {CanvasRenderingContext2D}
<static>
{string}
createjs.getString(value)
Changes the type of the specified variable to number only if it is a number.
- Parameters:
- {*} value
- Returns:
- {string}
<static>
createjs.inherits(name, child, parent)
Inherits the prototype methods from a parent constructor into a child one.
This function creates a temporary class that copies the prototype methods of
the parent class and creates it to avoid calling the parent constructor
directly. (It may cause a crash to call the parent constructor without
arguments.)
- Parameters:
- {string} name
- {Function} child
- {Function} parent
<static>
{boolean}
createjs.isArray(value)
Returns true if the specified variable is an Array object.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isBoolean(value)
Returns true if the specified variable is a string primitive.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isDefined(value)
Returns true if the specified variable is not undefined, i.e. the variable is
a defined one.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isFunction(value)
Returns true if the specified variable is a Function object.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isNaN(value)
Returns true if the specified variable is NaN. NaN does not become equal to
anything, including NaN itself. This method uses this property to check if
the specified value is NaN. (This method returns false if the 'value'
parameter is undefined, i.e. this method is not completely equivalent to the
isNaN() method.)
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isNumber(value)
Returns true if the specified variable is a string primitive.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isObject(value)
Returns true if the specified variable is an Object variable.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
{boolean}
createjs.isString(value)
Returns true if the specified variable is a string primitive.
- Parameters:
- {*} value
- Returns:
- {boolean}
<static>
createjs.log(message)
Writes a log message to a console.
- Parameters:
- {string} message
<static>
{number}
createjs.max(n0, n1)
Returns the maximum value.
- Parameters:
- {number} n0
- {number} n1
- Returns:
- {number}
<static>
{number}
createjs.min(n0, n1)
Returns the minimum value.
- Parameters:
- {number} n0
- {number} n1
- Returns:
- {number}
<static>
createjs.notImplemented()
Writes a 'NOT IMPLEMENTED' error to the debug console.
<static>
createjs.notReached()
Writes a 'NOT REACHED' message. This function is put the place where its code
should not be executed to tell callers that they did unsupported behaviors.
<static>
{number}
createjs.parseFloat(value)
Converts a string variable and returns a floating-point number.
- Parameters:
- {*} value
- Returns:
- {number}
<static>
{number}
createjs.parseInt(value)
Converts a string variable and returns a signed integer. This function always
returns a signed number object to which we can apply arithmetic operations to
it, i.e. 'org.aegis.parseInt("0") + 1' returns a number 1.
- Parameters:
- {*} value
- Returns:
- {number}
<static>
{string}
createjs.parseString(value)
Converts a string primitive from a primitive variable.
- Parameters:
- {*} value
- Returns:
- {string}
<static>
createjs.Region()
An interface that provides a method for comparing a point with a region.
Defined in: region.js.
Defined in: region.js.
<static>
{number}
createjs.round(n)
Returns the nearest integer of the specified number.
- Parameters:
- {number} n
- Returns:
- {number}
<static>
{number}
createjs.sin(angle)
Returns an approximate value of the Math.sin() method.
- Parameters:
- {number} angle
- Returns:
- {number}
<static>
createjs.TickListener()
An interface that implements a method that listens tick events sent by
createjs.Ticker objects.
Defined in: tick_listener.js.
Defined in: tick_listener.js.
<static>
{number}
createjs.truncate(n)
Truncates the specified value. This method discards the fractional part of
the specified number and returns only its integral part.
- Parameters:
- {number} n
- Returns:
- {number}
<static>
createjs.TweenObject()
An interface used for controlling a tween.
Defined in: tween_object.js.
Defined in: tween_object.js.
<static>
createjs.TweenTarget()
An interface used by the createjs.Tween object to change properties of a
target object.
Defined in: tween_target.js.
Defined in: tween_target.js.
<static>
{string}
createjs.typeOf(value)
Returns a string representing the type of a variable.
- Parameters:
- {*} value
- Returns:
- {string}