# AS3 Class problem

**URL:** <https://forum.kirupa.com/t/as3-class-problem/321224>\
**Category:** flash\
**Created:** [April 13, 2011, 5:37pm UTC](https://forum.kirupa.com/t/as3-class-problem/321224 "2011-04-13T17:37:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinnieb](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vinnieb](https://forum.kirupa.com/u/vinnieb)\
**Post date:** [April 13, 2011, 5:37pm UTC](https://forum.kirupa.com/t/as3-class-problem/321224/1 "2011-04-13T17:37:41Z")

</div>

Hi all!

I am trying to learn working with multiple classes in AS3. I came across a problem which I can not solve or look up. I have searched the documentation but I can not find a clear sollution or answer.

I have flashfile with a document class (main class). Within this class I use another class (circle class) to get a instance of a movieclip on the stage.

Now my problem is that I can not place the eventlisteners to the circle class. normally I would write something like this.addEventListener() but this doesnt work. But I really need a way to get this to work, because I want to make a mouse click event which must be linked to the circle to respond to it.

How someone can clear things out!
