How to get the reference to a newly created Button with Actionscript?
Posted
by Lost_in_code
on Stack Overflow
See other posts from Stack Overflow
or by Lost_in_code
Published on 2010-03-11T07:41:45Z
Indexed on
2010/03/11
19:54 UTC
Read the original article
Hit count: 142
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.
© Stack Overflow or respective owner