Closed davidgomes closed 12 years ago
browser/os?
Chromium 18/GNU Linux (Kernel version = 3.0.0-14)
setImage() will load an un-specified asset on the fly.. the simple sprite.image is a raw setter of image data.. so use setImage() and only image= if you need some extra boost. I don't think it's much of a difference though, I might just deprecate sprite.image= in total.
Changing the image of my sprite via:
sprite.image is not working, I get "TypeError" on jaws.js.
However, doing sprite.setImage ("new_image.png") is working.