I tried to search for this, but it’s kind of a weird question, so getting the wording right is difficult.
I want to generate huge amounts of data with a for loop, something like, for(i=0; i<100000; i++).
When I do this, naturally, my browser gives me a warning about flash slowing it down. How can I have like, a preloader for a for loop? Something that shows how close the for loop is to finishing, that kind of thing.
Thanks.
you can’t…
you may try
if(statement){actions}
but it goes frame-by-frame
thanks. I have found a way around it.
[AS]time = 30;
points = time*200;
interval = 100;
onEnterFrame = function(){
for(i=0; i<interval; i++){
timer += 0.005;
_root.display += timer+" “+getTimer()+”
";
}
loadval += (interval/points)*100;
if(loadval > 100){
gotoAndStop(2);
}else{gotoAndPlay(1)};
}[/AS]
And I have a dynamic text box displaying “loadval” in the first frame, so I can see how far along it is.