When publishing, exporting, or testing a movie in Flash CS4 Professional, you receive the following Output window error:
"ReferenceError: Error #1065: Variable {Class Name} is not defined."
When publishing, exporting, or testing a movie in Flash CS4 Professional, you receive the following Output window error:
"ReferenceError: Error #1065: Variable {Class Name} is not defined."
The Flash CS4 Professional complier has changed slightfrom the previous versions. If two classes have the same name, or if the main document class is the same as an imported class, this error will be thrown at compile time.
For example, if your main FLA is named "Calendar.fla", then a Calendar document class will automatically be generated at compile time (or you can write one yourself and specify it in Publish Settings).
In this case, you may not have another folder or class named "Calendar" in the classpath. For example, having a documentsubfolder structure such as Calendar.DateController.as will return error #1065 at compile time.
Ensure that no class or folder in the document's classpath has the same name as the original document's class.In the above example, renaming the folder 'Calendar' to 'Calendar2' is enough to resolve the error.