[name]
A loader for loading an [page:Image image].
Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when things happen, you need to add listeners to the object.
Constructor
[name]()
todo
Events
load
Dispatched when the image has completed loading
content — loaded image
error
Dispatched when the image can't be loaded
message — error message
Properties
.[page:object crossOrigin]
todo
Methods
.load( [page:String url] )
url — required
Begin loading from url
.dispatchEvent([page:todo event]) [page:todo]
event -- todo
todo
.hasEventListener([page:todo type], [page:todo listener]) [page:todo]
type -- todo
listener -- todo
todo
.removeEventListener([page:todo type], [page:todo listener]) [page:todo]
type -- todo
listener -- todo
todo
.addEventListener([page:todo type], [page:todo listener]) [page:todo]
type -- todo
listener -- todo
todo
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]