That sounds very inefficient.  Even using RSLs.

 

Could you not use a single Flex App and put your charts in a TileList,
with optimized item renderers?  This way, flex can recycle the chart
renderers as you scroll.  You should get better performance and better
memory management.

 

I do not know enough about the flash player internals to know really how
bad 40 individual flex applications are, but it just seems like a bad
idea.

 

It will be some work, but your requirements are not trivial.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vijay95052
Sent: Monday, May 19, 2008 7:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 - using same swf in a browser over 20 times
crashes it...

 

I have a need to show a chart in an html table (one chart in a cell in 
every row of the table - it has over 40 rows)

I am loading mychart.swf into the html <td> and it all works fine.
The problem is that when the number of charts are > 20 the browser 
crashes (both IE and FF) - out of memory.

Since it is the same swf (same flash object) - i am only passing 
different parameters to each instance - i am wondering if there is any 
way to make the browser reuse the same flash object - instead of 
getting it from the server everytime -

any other thoughts on how i can make this less resource intensive (my 
swf is around 300k)

I read something about using RSLs, but i am hoping there is an easier 
way to achieve this - i am trying to see if i can make the browser not 
fetch the swf again and again...

thanks
Vijay

 

Reply via email to