08-08-05 07:45 AM
Hi Varun,
What did your trace statements in the FOR loop tell you? How many items in
your result?
When tracing, did you find that the CPU usage hits 100% when in that loop,
or might there be other bits of your code that causes it?
Sounds to me like this is no FlashCom-related problem, might there be some
inconsistency with your movieclip (i.e. not code) that causes the problem?
Cheers
Simon
----- Original Message -----
From: "Varun Dixit" <vdixit-ifrIndToBmI@public.gmane.org>
To: "Flash Comm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@pu
blic.gmane.org>
Sent: Saturday, August 06, 2005 12:26 AM
Subject: [FlashComm] Flash and CPU Usage..resource crunch
> Hi all,
>
> In continuation with the problem I was having yesterday, I have got most
> of it taken care off, but whenever I view my results, the CPU usage goes
> to 100 % and it chews up all my resources. I was thinking if there was
> some problem with my FOR loop, or could there be a better way to do it.
>
> It works fine for first 4-5 seconds then the scroller just slows down
> and the usage shoots upto 100%..
>
> I have included my code for quick reference..
>
>
>
>
> function qGetNewsHeadlines_Result(result)
> {
>
> theLength = result.items.length;
>
>
> for (i=0; i<theLength; i++)
> {
> //trace(result.items[i].Title);
> //_root.site_titles=result.items[i].Title;
>
>
> _root.site_titles+=result.items[i].Title+"\n"+"\n" ;
>
>
> }
>
> }
>
> This is all being done using CFC and Remoting which works fine. My SWF
> file size is just 12 KB
>
> Any suggestions would be appreciated.
>
> Thanks
> Varun Dixit
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|