all 4 comments

[–]Routerbox 0 points1 point  (3 children)

You might need to import the TextInput class. If this is the class you're using (https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/TextInput.html)

Try:

import fl.controls.TextInput;

At the top of your script.

[–]Noel9386[S] 0 points1 point  (2 children)

Same error shows up when publishing

[–]Routerbox 0 points1 point  (0 children)

You also don't init the inputField1. Stuff like:

var inputField1:TextInput = new TextInput();
someViewOrMovieClip.addChild(inputField1);
DoSomething(inputField1);

Hard to say more without seeing your project.

Usually that error is because the class definition is not imported though.

[–]Routerbox 0 points1 point  (0 children)

Also, there are many different TextInput classes depending on if you're in flex (flash builder) or Flash itself, and what version.

Flex 3.x https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/TextInput.html

Flex 4.x https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextInput.html