canvas - Get notified when Bitmap is loaded in EaselJS -


i building application easeljs, , app has background image loaded s3 bucket, , shapes drawn on top of background.

right shapes appear , half second or later, once image loaded, background appears. want delay appearance of shapes until after background image has loaded - possible this?

maybe want? use preloadjs , loadqueue.

var queue = new createjs.loadqueue(false); queue.loadmanifest([{id: "mybitmapid", src:'path/to/resource'}]); queue.on("complete", function() {    // assets loaded.   var mybitmap = new createjs.bitmap(queue.getresult("mybitmapid"));   //... continue rendering here }, this); 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -