# AS3 Variable not defined Reference error 1065

**URL:** <https://forum.kirupa.com/t/as3-variable-not-defined-reference-error-1065/330432>\
**Category:** flash\
**Created:** [January 21, 2013, 9:19am UTC](https://forum.kirupa.com/t/as3-variable-not-defined-reference-error-1065/330432 "2013-01-21T09:19:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohsinre](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mohsinre](https://forum.kirupa.com/u/mohsinre)\
**Post date:** [January 21, 2013, 9:19am UTC](https://forum.kirupa.com/t/as3-variable-not-defined-reference-error-1065/330432/1 "2013-01-21T09:19:08Z")

</div>

I keep getting this error for every single symbol that I have in the library that is linked to actionscript… I have searched everywhere for this and cannot find a solution that works for me! I have everything set up exactly how it should be in the AS Linkage properties and the weird thing is that \*\*it works perfectly fine except in debug mode. \*\*It only gives the error when I compile in debug mode or enable ‘permit debugging’ in publish settings. All the actionscript runs fine when I don’t use debug mode. All my classes are public so that is not the problem.

Does anyone know something that can cause this problem?
