# How to use onEnterFrame

**URL:** <https://forum.kirupa.com/t/how-to-use-onenterframe/288242>\
**Category:** Uncategorized\
**Created:** [May 13, 2009, 8:28am UTC](https://forum.kirupa.com/t/how-to-use-onenterframe/288242 "2009-05-13T08:28:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaiyuttochai](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@chaiyuttochai](https://forum.kirupa.com/u/chaiyuttochai)\
**Post date:** [May 13, 2009, 8:28am UTC](https://forum.kirupa.com/t/how-to-use-onenterframe/288242/1 "2009-05-13T08:28:17Z")

</div>

i have been use onEnterFrame in AS@ like  
onEnterFrame = function(){  
trace(mouseX+" "+mouseY)  
}

and how i change into AS3

it’s always showing up the error  
1120: Access of undefined property enterFrame.
