<code>var m_assets = require("assets");

var asset_cb = function(data, id, type, url) {
     console.log("LOADED:", url);
}

var pack_cb() {
     console.log("ALL DATA LOADED!");
}

var progress_cb = function(rate) {
     console.log(rate * 100 + "% LOADED");
}

m_assets.enqueue([
     {id: "my_json001", type: m_assets.AT_JSON, url: "./my_json.json"}, 
     {id: "my_img001", type: m_assets.AT_IMAGE_ELEMENT, url: "./my_image.jpg"}
     ], asset_cb, pack_cb, progress_cb);</code></pre>


</div>
</div>
        