View Full Version : How to read text field value

6 Dec 2011, 3:23 AM
1.How to create button?
2.How to write button event in JS?
3.How to access value from text Field?:((

6 Dec 2011, 7:50 AM
Please see the responses to your other threads for 1 and 2.
Once you have a input element on stage and have given it an id, you can probably get the value with something like

var value = document.querySelector('#yourFieldId').value;

6 Dec 2011, 9:51 PM
Please give the sample code