SomaLoader is a lightweight loading manager. You can load many types such as images, swf, xml, text, xml, css, fonts in a swf, mp3, variables and binary data. Items can be added, removed and changed in position from the queue even while loading.
SomaLoader provides a simple and unique interface for massive loading, to listen to events and access to data. It also has some specific features such as targeting before loading, easy loading progress display, caching system and binary loading for “silent loadingâ€.
Sample
import com.soma.loader.SomaLoader; import com.soma.loader.SomaLoaderEvent; var loader:SomaLoader = new SomaLoader(); loader.addEventListener(SomaLoaderEvent.COMPLETE, itemComplete); loader.addEventListener(SomaLoaderEvent.QUEUE_COMPLETE, queueComplete); loader.add("photo1.jpg"); loader.add("photo2.jpg"); loader.add("photo3.jpg"); loader.start(); function itemComplete(event:SomaLoaderEvent):void { var bitmap:Bitmap = event.item.file as Bitmap; addChild(bitmap); } function queueComplete(event:SomaLoaderEvent):void { trace("All the items have been loaded"); }
@as3gamegears That’s great… can you tell me how is compares to bulk-loader ?
That looks awesome. Thanks for the share. Will I be able to load video using this (FLV, MP4)?
Hi RiaanP! You’re welcome! According to the docs, it is not able to load video files. I guess you can take a look at BulkLoader, which should be able to load videos, I think.