Store the value in an instance variable as well as passing it thorugh to the image. Then in setValue check to see if it's != your stored value and only update the Image source if true.
Matt
From: [email protected] [mailto:[email protected]] On Behalf Of superabe superabe
Sent: Thursday, January 26, 2006 5:06 PM
To: [email protected]
Subject: [flexcoders] Datagrid Cell Renderer
I have a CellRenderer for a DataGrid that creates images dynamically based on a value passed in through the SetValue method of the CellRenderer.
The problem is that setValue seems to be called multiple times, like on sort, on select etc, which causes all the images to be recreated, thus casuing a visual flicker in each cell.
Is there an alternate way to do this ?
TIA
- superabe
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

