I advise against "myModel.header[repeater.currentIndex", and suggest
using instead "currentItem". That is what currentItem is for. If you
are getting that confusing XML binding warning, then do:
text="{XML(repeater.currentItem)[EMAIL PROTECTED]"
Also, consider creating a custom component encapsulating all of your
display functionality and repeating that. Pass in the entire
currentItem via a setter property. This will simplify the code
significantly.
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of scootr6262
Sent: Wednesday, April 23, 2008 1:04 PM
To: [email protected]
Subject: [flexcoders] Re: Using XML attributes with hyphens in a
Repeater
Hello,
I think I've solved my problem. I changed the code from:
text="[EMAIL PROTECTED]"
- to -
text="{myModel.header[repeater.currentIndex].attribute('time-opened')}"
That seems to have solved my issue. Thanks for your time!
Scott
--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "scootr6262" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have a Repeater control that I am using to display XML data from an
> HTTPService call. The XML data includes an attribute containing a
> hyphen. How do I get this value? To assign the value to a label,
> I've tried something like:
>
> text="[EMAIL PROTECTED]"
>
> But, I get a compilation error when using this syntax. Any
suggestions?
>
> Thanks for your time.
>