# addEventListener

**URL:** <https://forum.kirupa.com/t/addeventlistener/324980>\
**Category:** Uncategorized\
**Created:** [September 19, 2011, 10:41pm UTC](https://forum.kirupa.com/t/addeventlistener/324980 "2011-09-19T22:41:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [September 19, 2011, 10:41pm UTC](https://forum.kirupa.com/t/addeventlistener/324980/1 "2011-09-19T22:41:03Z")

</div>

Hiya, Hopefully a simple one here…!

Im using caurnia transitions, and I am adding an onComplete handler to fire up a onEnterFrame Event.

I just cant seem to pass the object through to the ENTER FRAME function so I can do something with it …

```auto
Tweener.addTween(myObj, {x:10, time:1,onComplete:function() {this.addEventListener(Event.ENTER_FRAME, timer);} });	}
	
	function timer(e:Event):void
	{
		e.x += 1;
	}

```

Any ideas?! thank you!
