# \[F9-2.0\] What's wrong with this Listener?

**URL:** <https://forum.kirupa.com/t/f9-2-0-whats-wrong-with-this-listener/256909>\
**Category:** flash\
**Created:** [April 8, 2008, 6:03pm UTC](https://forum.kirupa.com/t/f9-2-0-whats-wrong-with-this-listener/256909 "2008-04-08T18:03:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhidbeyTomas](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@WhidbeyTomas](https://forum.kirupa.com/u/WhidbeyTomas)\
**Post date:** [April 8, 2008, 6:03pm UTC](https://forum.kirupa.com/t/f9-2-0-whats-wrong-with-this-listener/256909/1 "2008-04-08T18:03:23Z")

</div>

“There is no method with the name ‘addEventListener’,” says the compiler.

OK, so I did something wrong; but what?  
ee1 is a checkbox.

```auto
 
// Create Listener Object.
var ee1Listener:Object = new Object();
 
// Assign function to Listener Object.
ee1.click = function(event_obj:Object) {
     _root.vSubtotal += ee;
      _root.vSubtotal_c += ee_c;
      _root.vSubtotal_d += ee_d;
      vSubtotal_d = _root.vSubtotal_d;
      vSubtotal = _root.vSubtotal;
      vSubtotal_c = _root.vSubtotal_c;
}
 
// Add Listener.
ee1.addEventListener("click", ee1Listener);

```

Here’s advance thanks!
