msg1 {
thiefoflight[+],
posted: 05.25.04 6a•05.25.04 6a,
top [^]
}
This is a revision of Kenny Bunch's LoadQue Class. To see it in action, visit http://www.jcharvet.net
The biggest edit I've made is in removing the onTotalData functions and callbacks, and attempting to calculate the total byte size of the elements being preloaded rather than calculating TotalData by the number of elements in the array.
The main edits are made to the $onItemData handler, where I have created a totalPercentBytes variable and method to calculate and broadcast the total amount loaded, and to the LoadQue.start handler, where I create a custom Object and LoadVars to load the element in, check its size, and immediately delete it, keeping the data of its size for the actual LoadQue. This method allows for an accurate single preloader that calculates percentage completed in regular intervals.
HOWEVER, IT SOMETIMES DOES NOT LOAD THINGS! THIS IS WHERE I NEED HELP FROM ALL OF YOU. Most of the time, it works fine, but sometimes I feel like it just bypasses the data passed from my objects and fails to load the whole que. Also, I usually have to set the interval to run at at least 100, or else it skips some elements. Any help from you gurus would be greatly appreciated, especially from you, Kenny, since you are the one with most expertise on this.
Let's get this working so that we have the best possible preloader available for all of our benefit. I have faith in you guys!
msg2 {
mellowvision[+],
posted: 05.26.04 1p•-,
top [^]
}
shows 112% loaded when done with 1 item, at least for me. I have not changed any code... just testing what you have.
?
msg3 {
mellowvision[+],
posted: 05.26.04 2p•-,
top [^]
}
also, leaves a bunch of "checkme" clips on the stage when it's all done.
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 47: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 64: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 97: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 118: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 137: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 169: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 182: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 219: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 232: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 243: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Tascio\Desktop\preloader\LoadQue.as: Line 251: ActionScript 2.0 class scripts may only define class or interface constructs.
};
Total ActionScript Errors: 11 Reported Errors: 11
msg6 {
oto_oto[+],
posted: 01.27.08 3a•-,
top [^]
}
for me
que.onLoad = function(){ trace("COMPLETELY LOADED ALL ASSETS"); };
does not works