WARNING: Text field variable names are not supported in ActionScript 3.0

ActionScript WARNING: Text field variable names are not supported in ActionScript 3.0. The variable ‘btnName’ used for an unnamed text field will not be exported.

ActionScript Warning Description:

So I was going back to restructure a project that I had done in AS2 and a previous version of Flash.  I thought I had converted all of the old AS2 code, and components, and naming conventions, etc… when this error popped up.  The error made a lot of sense until I went to fix it.  The image below is what I saw when I went to the place that I thought be the resolution to this error.

Text Field Variable Names not displaying in CS4/

Text Field Variable Names not displaying in CS4/AS3

Flex / Flash Text Field  Variable Warning Fix:
I searched around at other buttons and tried to find something else that might have been it even though I knew that this was the correct text field.  The way to solve this is to revert back to AS2 in your publish settings ( FILE >> PUBLISH SETTINGS >> SCRIPT drop down) and then go back to the text field in question and you will be able to delete the variable name. Don’t forge to return to ActionScript 3.0 after you delete the variable name.

File >> Publish Settings >> Script Option

File >> Publish Settings >> Script Option

and with this option selected you can then delete the variable name as shown below.

Text Field Variable Names not displaying in AS2

Text Field Variable Names not displaying in AS2

This should help you resolve Flex / Flash Text Field Variable Warning

Thanks and as always Happy Flashing

Curtis J. Morley

4 thoughts on “WARNING: Text field variable names are not supported in ActionScript 3.0

  1. you rock! This cleaned up one of the messes. Now if I could get some of my code (mostly event handlers) re-worked then this project might make headway. Nonetheless, thanks a ton!

Comments are closed.