It could just be yahoo, but the yahoo tree tacked this thread onto the
end of "actionscript class in Flex project".

 

But did you see my  getRepeaterItem() suggestion?

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, October 01, 2007 10:01 AM
To: [email protected]
Subject: RE: [SPAM] RE: [flexcoders] Passing a property of repeater item

 

Thanks Tracy

 

Sorry I didn't think I had hijacked any thread - I was under the
impression I had started this thread. Perhaps there was an identical one
going on at the same time?

 

Paul

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: 01 October 2007 15:05
To: [email protected]
Subject: [SPAM] RE: [flexcoders] Passing a property of repeater item

 

Paul, it looks like you hijacked this thread?   That confuses some
readers.

 

One way to do what you want is to use getRepeaterItem.  It is easier
thatn subclassing, etc.

click="displayHelpTopic(linkrep.getRepeaterItem().title)"

 

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Sunday, September 30, 2007 5:47 AM
To: [email protected]
Subject: [flexcoders] Passing a property of repeater item

 

I can't figure out how to pass a property of a repeater item to a
function

This is what I am trying but it is not working

<mx:Repeater id="linkrep" dataProvider="{this.helpRelatedData}"> 

<mx:LinkButton label='{linkrep.currentItem.title}'
click="displayHelpTopic(linkrep.currentItem.title)" color="#0000ff"/>

</mx:Repeater> 

Basically I want to pass the value linkrep.currentItem.title but what I
have
tried above does not work.

Anyone suggest how I can do this.

The label is displaying correctly.

Thanks in advance

Paul

 

Reply via email to