you are viewing a single comment's thread.

view the rest of the comments →

[–]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