AS3, class ReferenceError error when writing stage instance name: Error # 1056: Can not create property ×× ×××

When the class associated with the display object to the script, but this time turn the display object that shows the objects in the set name in the Properties panel, there will be "ReferenceError: Error # 1056:. ××× property could not be created for the ××" of error. He said the Internet is defined in the script in a class with the same name and type of total property can, in fact, do not need too much trouble, just do it like this:

In Flash9, "File" menu, "Publish Settings", select back in ActionScript version "Settings ..." button and enter ActionScript3.0 settings, will: check the "stage automatically declare stage instances" check box before exporting OK.

Reproduced in: https: //www.cnblogs.com/pains/archive/2010/05/26/1744702.html

When the class associated with the display object to the script, but this time turn the display object that shows the objects in the set name in the Properties panel, there will be "ReferenceError: Error # 1056:. ××× property could not be created for the ××" of error. He said the Internet is defined in the script in a class with the same name and type of total property can, in fact, do not need too much trouble, just do it like this:

In Flash9, "File" menu, "Publish Settings", select back in ActionScript version "Settings ..." button and enter ActionScript3.0 settings, will: check the "stage automatically declare stage instances" check box before exporting OK.

Guess you like

Origin www.cnblogs.com/dt1991/p/11980940.html