There are no "dynamic ids" because ids are a compile-time concept. (When
a tag with an id is compiled, the MXML compiler creates a reference
variable in the component or application class that you're defining.)
Instead, you write
 
<mx:Repeater ...>
    <mx:Button id="b"/>
</mx:Repeater>
 
and then access the repeated instances as b[0], b[1], etc.
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Friday, September 14, 2007 3:26 PM
To: [email protected]
Subject: [flexcoders]dynamic ID's in repeater



How would you create a dynamic id for a mxml component inside a
repeater? I have tried <mx:Button id="button{index}" /> and the compiler
does not allow it. 






 

Reply via email to