I'm going to try to combine your other response as well.

 

Yes, the repeater lets you dictate what the data items are and the same
is true for item renderers.  Normally, you plug a collection or array or
xmllist into a List/Tree/DataGrid, etc and the items in that collection
become the data properties in the renderers.

 

The renderers job is to pull fields from the data object and stuff it
into UI widgets in a renderer.

 

I'm a codehead, and while I've given many talks about itemrenderers at
MAX and other venues, it is an entire hour presentation and assumes
you're up to speed on object oriented programming and actionscript, and
trying to distill this topic into an email on FlexCoders is outside my
time constraints right now.  I generally respond to these emails while
waiting for builds and regression tests to run, and give short answers
when I know others on the forum can fill in the details.

 

Sounds like you're hitting a pretty straightforward issue dealing with
actionscript.  If you post your code, I'll try to take a look at it on
my next pass through this forum (as a true codehead, it is often easier
for me to read code than your description).  Also see some code I helped
with in this forum yesterday with the subject "DataGrid cell access
question"

 

-Alex

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Saturday, September 29, 2007 12:17 PM
To: [email protected]
Subject: [flexcoders] Re: MultiPurpose ItemRenderer

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There is a recommended pattern involving calling 
invalidateProperties()
> in the .data setter, overriding commitProperties() to handle
> distributing the data, and other "component lifecycle" methods.
> 
> There is documentation on making custom item renderers, and you can 
look
> at the source code for mx.controls.listClasses.ListItemRenderer and
> mx.controls.TextInput and other mx.controls that are 
IListItemRenderers.

I looked at the source for ListItemRenderer, and when I tried to do 
the same thing, I got 

1024: Overriding a function that is not marked for override.

When I added override, I got incompatible override. Clearly there is 
something here that I am missing. Please keep in mind that I am a 
Community Expert for Authorware, which means that for the past 
several years the people who have answered what questions I've had 
have been instructional designers first, codeheads second. So please 
try to imagine you are in front of a classroom of people who are 
relatively new to Flex and couch your answer in those terms.

Thanks;

Amy

 

Reply via email to