How to create a button and assign a value to a text box within it in actionscript?

Can we create an instance of a button from the library dynamically?

If you have already a button Symbol in your Library with the linkageName buttonSymbol just attach the button on Stage and asign values to it via the button’s name.

The full code:

this.attachMovie(“buttonSymbol”, “btn”, 1);
this.btn.txtField.text = “a Text”;

Continue reading “How to create a button and assign a value to a text box within it in actionscript?”