I'd wager the colors would be reused in other parts of the application, so hard coding them in the itemRenderer probably isn't the best idea. I usually have colors sets as part of my client-side data model, either hard coded in the container class, or populated at runtime from some server-side source. Then they can be used anywhere in the application, while remaining easily updatable.
cheers, barneyb On 7/9/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote: > where does this array of colors live, eh? Sounds to me it would be a fixed > array that could live in the renderer. Then just over ride the data setter > in your renderer setting the background color there via setStyle(). > > Petter Ent at > http://weblogs.macromedia.com/pent/archives/2007/02/index.cfm<http://weblogs.macromedia.com/pent/archives/2007/02/index.cfm> > has a example that's a little different. Someone from Adobe mentioned on > flexcoders extending Label in this way is a bit lighter too, so should > perform better. > > > DK -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4359 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
