yes, it works, i can pass "a" as array anywhere i want now :)

thanks

2007/1/22, Gordon Smith <[EMAIL PROTECTED]>:

 The correct way is to use the array-indexing technique that Ralf
mentioned. If the TextField has an id of "a", then the repeated instances of
it are accessible as a[0], a[1], etc.



- Gordon


 ------------------------------

*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *ulag00
*Sent:* Sunday, January 21, 2007 8:51 AM
*To:* [email protected]
*Subject:* [flexcoders] Re: repeater and id



I am learning flex and I had similar requirement. I used attribute
"uid" for this purpose. I was able to bind a dynamic value to "uid" in
my prototype. I am not sure if this is the rightway. But I was able to
leverage "uid" to identify the textfield uniquely.

Regards
Ulag

--- In [email protected] <flexcoders%40yahoogroups.com>, "Ralf
Bokelberg"
<[EMAIL PROTECTED]> wrote:
>
> The id needs to be a constant value, you can't use dynamic values
for it.
>
> It looks like you are trying to implement a naming scheme like
a1,a2,a3,...
> You can achieve something similar by naming your TextField just "a".
> Now you can access the different TextFields like an array, eg. a[0],
a[1],
> a[2], ...
>
> Cheers,
> Ralf.
>
> On 1/21/07, dex <[EMAIL PROTECTED]> wrote:
> >
> > hello!
> >
> > im not sure im using repeater in right place, but i need to add new
> > input text fields with button and NumericStepper. The problem is that
> > when im trying to assign text inputs id id="a{String(rp.currentItem)}
> > i get an error: 'a{String(rp.currentItem)}' is not a valid identifier.
> > Is it possible to make ids be deferent from each other, or i shouldn't
> > use something else then repeater?
> >
> > thank you
> >
> >
>
>
>
> --
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
> Phone +49 (0) 221 530 15 35
>



Reply via email to