# Defining AsBroadcasters

**URL:** <https://forum.kirupa.com/t/defining-asbroadcasters/217096>\
**Category:** Uncategorized\
**Created:** [February 22, 2007, 11:58pm UTC](https://forum.kirupa.com/t/defining-asbroadcasters/217096 "2007-02-22T23:58:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WearDark](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@WearDark](https://forum.kirupa.com/u/WearDark)\
**Post date:** [February 22, 2007, 11:58pm UTC](https://forum.kirupa.com/t/defining-asbroadcasters/217096/1 "2007-02-22T23:58:56Z")

</div>

Can I define a custom class to be an AsBroadcaster in the classes constructor?

i.e.

```auto
            
class myClass{ 
     function myClass(){ 
        AsBroadcaster.initialize(this); 
     } 
} 
 

```

And if so will that give me the ability to addListeners to an instance of that class?

The reason I want this approach is because I want to broadcast events from inside one of the custom classes methods and I want a textField on the stage to be listening for that broadcast message.

If I can’t do what I want… does anyone know how I can accomplish what I need?

Cheers.
