onLoadInit = function () { if(toLoad <= toLoadTotal) { this.load(itemsToLoad[++toLoad]); }else{ trace("all items loaded"); } }