# EventListener

**URL:** https://forum.kirupa.com/t/eventlistener/253512
**Category:** Uncategorized
**Created:** [March 2, 2008, 9:28am UTC](https://forum.kirupa.com/t/eventlistener/253512 "2008-03-02T09:28:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![luiner](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@luiner](https://forum.kirupa.com/u/luiner)
#### Post date: [March 2, 2008, 9:28am UTC](https://forum.kirupa.com/t/eventlistener/253512/1 "2008-03-02T09:28:14Z")

</div>

Hello

I have at the moment lame code like:

frame 1  
if (nameObject != null){doSth(); stop();}

frame 2  
gotoAndPlay(1);

I need better form of checking if my object get data.  
So if somebody know how use events or similar efects on objects and will help I will be happy.(In real i’m using Timer [in-time-delayed/repeated-function], but its same, just without frames)

Thanx a lot
