For example, i would like to create a Repeater component with id 'myRepeater' using AS only. I tried with:
var rep:Repeater = new Repeater();
rep.id = "myRepeater";
And code compiles without error, but how can i later on in my code use that id, for example if i would like use the following somewhere in as code:
Then i get an error. How can i assign an id to component so that i could use that id later on in my code for defininig component properties etc.?
thanks in advance