# Call a function when enter function?

**URL:** <https://forum.kirupa.com/t/call-a-function-when-enter-function/298773>\
**Category:** Uncategorized\
**Created:** [October 24, 2009, 7:57pm UTC](https://forum.kirupa.com/t/call-a-function-when-enter-function/298773 "2009-10-24T19:57:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nimaro](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@Nimaro](https://forum.kirupa.com/u/Nimaro)\
**Post date:** [October 24, 2009, 7:57pm UTC](https://forum.kirupa.com/t/call-a-function-when-enter-function/298773/1 "2009-10-24T19:57:14Z")

</div>

hy everyone,

how can i can call a function only when i enter 1 determineted function?

addEventListener(???, tweenfunction);

hope u guys can help me,
