Canvas Components, Controls and more!
CreateJS (PreloadJS) has a LoadQueue class with a loadManifest() method – the manifest is an array of objects with src and id properties. Once loaded, you create a new createjs.Bitmap(loadQueue.getResult()). For sound you install a plugin with installPlugin(createjs.Sound). This procedure works well, but has always been a touch scary looking for just loading pictures and sound.
So ZIM 2.5.2 has wrapped PreloadJS in the zim Frame() class. You call a loadAssets() method and pass it an array of file names and optional path. When the loading is complete use the asset() method and the file name to get a reference to the asset. This will be a Bitmap for images or use the asset().play() to play a sound.