# ReferenceError: Error #1065: Variable is not defined

**URL:** <https://forum.kirupa.com/t/referenceerror-error-1065-variable-is-not-defined/238418>\
**Category:** Uncategorized\
**Created:** [September 11, 2007, 6:42am UTC](https://forum.kirupa.com/t/referenceerror-error-1065-variable-is-not-defined/238418 "2007-09-11T06:42:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquidFusion](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@liquidFusion](https://forum.kirupa.com/u/liquidFusion)\
**Post date:** [September 11, 2007, 6:42am UTC](https://forum.kirupa.com/t/referenceerror-error-1065-variable-is-not-defined/238418/1 "2007-09-11T06:42:26Z")

</div>

Good people of Kirupa.  
Please help me out with this error message.  
No matter how simple my class is Flash gives me this error message :  
“ReferenceError: Error #1065: Variable is not defined.”

In fact, it happens even if I don’ have any variables at all. It won’t even run a simple “hello world” trace from the constructor method.

From what I’ve learned from other people, this could often be caused by not declaring your classes public, but I have that.

Any ideas on what causes this?
