Re: [Flashcoders] Re: showing code progress with progress bar
You'll have to make your own threading code. ie this var processCursor = 0; var processLength = 1; //example who many lines to parse function onEnterFrame(){ if( processCursor < processLength){ processLittlePiece(); updateProgressBar(); }else{ //go to complete frame } } function processLittlePiece(){ //doWorkOnProcess processCursor++; } Hans Wichman skrev: wont work On Mon, Nov 24, 2008 at 6:36 PM, Latcho <[EMAIL PROTECTED]> wrote: what about a functioncall every 100th loop that has to return fake data (a true or false or anything else) to the loop? Within that function you update the display progress Latcho Mac Angell wrote: Yeah, I actually do have a huge parse that I want to show progress on, but using ENTER_FRAME just seems like a hack. So I guess the answer to my question is "no". Thanks everyone for the ideas! Yikes! I don't think he actually wants the loop to take any longer than necessary. I'm assuming he's got some sort of computationally expensive operation (huge parse or something) that he wants to show the progress. How about subdividing your loop into more manageable chunks that get called once a frame? -- -jonathan howe -Mac Angell ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: showing code progress with progress bar
wont work On Mon, Nov 24, 2008 at 6:36 PM, Latcho <[EMAIL PROTECTED]> wrote: > what about a functioncall every 100th loop that has to return fake data (a > true or false or anything else) to the loop? > Within that function you update the display progress > Latcho > > > Mac Angell wrote: > >> Yeah, I actually do have a huge parse that I want to show progress on, >> but using ENTER_FRAME just seems like a hack. So I guess the answer to >> my question is "no". Thanks everyone for the ideas! >> >> >> >> >> >>> Yikes! I don't think he actually wants the loop to take any longer >>> >>> >> than >> >> >> >>> necessary. I'm assuming he's got some sort of computationally >>> >>> >> expensive >> >> >> >>> operation (huge parse or something) that he wants to show the >>> >>> >> progress. How >> >> >> >>> about subdividing your loop into more manageable chunks that get >>> >>> >> called once >> >> >> >>> a frame? >>> >>> >> >> >> >> >>> -- >>> >>> >> >> >> >>> -jonathan howe >>> >>> >> >> >> -Mac Angell >> >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: showing code progress with progress bar
what about a functioncall every 100th loop that has to return fake data (a true or false or anything else) to the loop? Within that function you update the display progress Latcho Mac Angell wrote: Yeah, I actually do have a huge parse that I want to show progress on, but using ENTER_FRAME just seems like a hack. So I guess the answer to my question is "no". Thanks everyone for the ideas! Yikes! I don't think he actually wants the loop to take any longer than necessary. I'm assuming he's got some sort of computationally expensive operation (huge parse or something) that he wants to show the progress. How about subdividing your loop into more manageable chunks that get called once a frame? -- -jonathan howe -Mac Angell ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: showing code progress with progress bar
Yeah, I actually do have a huge parse that I want to show progress on, but using ENTER_FRAME just seems like a hack. So I guess the answer to my question is "no". Thanks everyone for the ideas! > Yikes! I don't think he actually wants the loop to take any longer than > necessary. I'm assuming he's got some sort of computationally expensive > operation (huge parse or something) that he wants to show the progress. How > about subdividing your loop into more manageable chunks that get called once > a frame? > > -- > -jonathan howe -Mac Angell ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders