Skip navigation
Currently Being Moderated

How to assign id to component using ActionScript

Nov 7, 2007 8:47 AM

For example, i would like to create a Repeater component with id 'myRepeater' using AS only. I tried with:

var rep:Repeater = new Repeater(); = "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

More Like This

  • Retrieving data ...

Bookmarked By (0)