--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> comparing against the old value and if it hasn't changed not doing
anything, it may be that it's invalidating too often?

A couple of days ago I discovered that this 'event' fires every time
the row is scrolled into or out of view. So if you are scrolling
quickly, this code could be firing tens of times just over a half
second or whatever. Setting a flag is definitely a good idea. Here is
what my code ended up looking like (itemRenderer was just a checkbox
with a dynamic label):

private var str_label:String;

override public function set data(value:Object):void
{
        use namespace DOCUMENT_METADATA_NAMESPACE;
        var q:QName = new QName(DOCUMENT_METADATA_NAMESPACE, "PlanNumber");
        
        super.data = value;
        
        if(super.data[q] != str_label)
        {
                cb_planNumber.label = str_label = super.data[q];
                cb_planNumber.selected = false;
        }
}

HTH,
Ben






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to