onEnterFrame / while loop
onEnterFrame / while loop
Out of context: Reply #1
- Started
- Last post
- 18 Responses
- unfittoprint0
onEnterFrame should be avoided, it seems that the interval approach is advisable.
something like:
loadLoop = setInterval(function(){
if(this.holder.getBytesLoaded... && this.holder.
getBytesTotal()>10){
percent=100;
clearInterval(loadLoop);
} else {
percent = this.holder.getBytesLoaded()/thi...
};
}, 30)stop();