I have a MXML button:
<mx:Button id="myButton1"/>
How do I create N number of Buttons with Actionscript: myButton2, myButton3, myButton4… myButtonN ?
And how to get the reference to the newly created buttons right after they are created? Like
I should be able to do myButtonN.x = 100 right after it’s created.
This is pretty basic stuff…you might want to start with some Flex tutorials, or read through one of the many excellent books.
Here’s a blob of code for you to copy & paste and see how it works for you:
It’s not tested, so might need some minor typos, but you should be able to get the idea.