You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't see where EaselJS offers this option explicitly. But it can be done.
For visual elements, any images can be loaded using new Image which has event handlers for this. Those can emit loaded. They should emit loading when they begin a new load operation. They can also inform their this.easel parent about loading/loaded.
Building from that, container elements should emit loading when one visual element is loading and they should emit loaded when there are none.
Finally, these elements should emit load-error when a load fails.
The text was updated successfully, but these errors were encountered:
Alternatively, a mixin could be created which provides a method called loadImage, and keeps track of loading images, then sets allImagesLoaded to true or false as appropriate.
I can't see where EaselJS offers this option explicitly. But it can be done.
For visual elements, any images can be loaded using
new Image
which has event handlers for this. Those can emitloaded
. They should emitloading
when they begin a new load operation. They can also inform theirthis.easel
parent about loading/loaded.Building from that, container elements should emit
loading
when one visual element isloading
and they should emitloaded
when there are none.Finally, these elements should emit
load-error
when a load fails.The text was updated successfully, but these errors were encountered: