Copy link to clipboard
Copied
I am trying to create a new Flash website with Adobe Animate. I went ahead and put in a test input box on the stage, but when I select the "Test Movie in Browser" option, I can see the cursor change but am not able to actually enter any text. Do I need to add some ActionScript in order for users to actually type in text input?
Brand new to Flash here.
1 Correct answer
Hi.
Are you using a AS3 document or HTML5 (Canvas) document?
In AS3 documents, you have to select the text field, go to the Properties panel and set the text field type to "Input Text".
In HTML5 documents, as the Canvas element doesn't support text input by default, you'll have to use a "TextInput" component from the components panel.
Regards,
JC
Copy link to clipboard
Copied
Hi.
Are you using a AS3 document or HTML5 (Canvas) document?
In AS3 documents, you have to select the text field, go to the Properties panel and set the text field type to "Input Text".
In HTML5 documents, as the Canvas element doesn't support text input by default, you'll have to use a "TextInput" component from the components panel.
Regards,
JC
Copy link to clipboard
Copied
This is how you get the value of a Text Input Component:
If your Text Input Component is named 'nametext' as the Animate instance name, retrieve the value with one of the following:
myVal = $('#nametext').val();
myVal = document.getElementById('nametext').value;
myVal = this.nametext._element._element[0].value;
myVal = document.getElementsByTagName("input")[0].value;
To see a list of available properties, use console.log(this.nametext); In a browser such as Internet Explorer 11, open the developer tools by pressing F12 and check the console for the log. Click on the + to see properties.

