# ReferenceError: Error #1065 : "Variable xxx is not defined"

**URL:** <https://forum.kirupa.com/t/referenceerror-error-1065-variable-xxx-is-not-defined/277067>\
**Category:** flash\
**Created:** [December 7, 2008, 9:34am UTC](https://forum.kirupa.com/t/referenceerror-error-1065-variable-xxx-is-not-defined/277067 "2008-12-07T09:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stratboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stratboy/32/3054_2.png) [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Post date:** [December 7, 2008, 9:34am UTC](https://forum.kirupa.com/t/referenceerror-error-1065-variable-xxx-is-not-defined/277067/1 "2008-12-07T09:34:19Z")

</div>

Hi! I’ve just switched from cs3 to cs4, and I’m having a quite annoing problem:

Suppose a simple blank new flash document.  
Suppose a simple mc symbol in the library, say ‘square’, with some actionscript, say a simple stop() command. No linkage/export class name.

THE PROBLEM: as I put an instance of it on the stage, while testing I get this error:  
ReferenceError: Error #1065: Variable square\_1 is not defined.  
It attaches the \_1 to the symbol name and gives me that error.

- I’ve observed this: if I cut out the stop() command (or any actionscript, I suppose), I don’t get any error while testing.

- I’ve also observed this: If I put a class identifier for the square symbol, the problem disappears. Obviously, I definitely don’t want to put a class identifier for every symbol I use with some little AS command inside…

Any idea? This appears for all the symbols with AS code inside.

Since my Flash CS4 is an upgrade I have both flash CS3 (the original licence) and flash CS4 installed on my Mac (iMac intel core 2 duo, 2.4 Gh, 10.5.5). Could it be some cs3/cs4 conflict?

If you want, I can attach the fla.
