Hi,
paste here all the DC code please.
Hi I'm trying to extract the text, which is entered into an input textfield and emailed via PHP. I know how to get it using the instance name method when a input box is created by drawing it on the stage. My problem is that I have created the input textfield via ActionScript 3.0 within a Document Class and I don't know how to access the text property.
Here's how I created the textfield, which works fine
var nameInput:TextField = createTextField(200, 250, 250, 25);
nameInput.type = TextFieldType.INPUT;
nameInput.text = "Full Name (First, Last)";
nameInput.setTextFormat(efFormat);
But when I try just to trace it
trace("name: " + nameInput.text);
I get this error meassage
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
Can anyone help me on this? I just need the proper name/way to access the text within the input textfield.
Thanks!
Hi,
paste here all the DC code please.
Thanks for your reply Flep but I figured it out. I had to create the input textfeild with out calling the createTextField() function. I just took the code from the createTextField() function and hardcoded it into the setUp() function.
Thanks again for your reply. Great site!
Bookmarks