Movie

Movie

new Movie(url, callback)

Constructs a Movie instance
Parameters:
Name Type Argument Description
url String <optional>
The URL location of the movie to load.
callback Function <optional>
A callback to be called when your movie has loaded (only called if you passed a `url`). The callback will be called with it's first argument signifying an error. So, if the first argument is `null` you can assume the movie was loaded successfully.

Extends

Mixes In

Methods

bindAssetCallback(callback) → {this}

Registers events for a callback function which'll be triggered for both `error` and `load` events (i.e. node-style callback, `function(err, data) {}`)
Parameters:
Name Type Description
callback Function The function to be triggered upon `load` or `error`
Inherited From:
Returns:
Type
this