02.19.09

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

Posted in Adobe, Error, Error, Flash 10 at 11:20 pm by Curtis J. Morley

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 Comments »

  1. Fluena - Web Design Serbia - Flash & more said,

    June 3, 2009 at 5:43 pm

    Yes, and it’s much simplier this way. At least one issue where as3 is simplier 🙂

  2. Chris Adams said,

    October 16, 2009 at 9:13 pm

    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!

  3. Kev said,

    May 12, 2010 at 6:19 am

    Thanks!!!!! This just solved a problem of mine! You’re the man!

  4. me said,

    October 25, 2010 at 11:34 am

    many thanks: )

Leave a Comment