# Event Listener Function

**URL:** <https://forum.kirupa.com/t/event-listener-function/215364>\
**Category:** flash\
**Created:** [February 6, 2007, 7:21pm UTC](https://forum.kirupa.com/t/event-listener-function/215364 "2007-02-06T19:21:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kill\_robot\_kill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kill_robot_kill/32/359_2.png) [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Post date:** [February 6, 2007, 7:21pm UTC](https://forum.kirupa.com/t/event-listener-function/215364/1 "2007-02-06T19:21:50Z")

</div>

I am wondering if there is anyway to pass a value with the function in an event listener function.

```auto

function finished(f_clip) {
	trace("hit");
	f_clip._visible = false;
}
one.addEventListener("complete", finished(one));

```

I have a couple FLV’s on the canvas and I’d like call ONE function when they are each finished playing, but have clip specific code executed.
