# ReferenceError 1065

**URL:** <https://forum.kirupa.com/t/referenceerror-1065/292579>\
**Category:** flash\
**Created:** [July 15, 2009, 11:40pm UTC](https://forum.kirupa.com/t/referenceerror-1065/292579 "2009-07-15T23:40:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcosta26](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mcosta26](https://forum.kirupa.com/u/mcosta26)\
**Post date:** [July 15, 2009, 11:40pm UTC](https://forum.kirupa.com/t/referenceerror-1065/292579/1 "2009-07-15T23:40:20Z")

</div>

I was following a tutorial and input the AS code :

\_root.onEnterFrame = function(){  
if(\_root.\_xmouse\<50){  
imgBar.prevFrame();  
}  
}

and im getting this : ReferenceError: Error #1065: Variable \_root is not defined.  
at Sliding\_fla::MainTimeline/Sliding\_fla::frame1()

I’m very new to AS and flash so if you’re willing to help, please be patient… 🙂

Thanks.
