broadcastMessage from class

For the Flash application I’m developing, I would like to be able to make custom listeners. I’ve got a class and want to broadcast an event from within that class. Then I would like to let objects outside of that class listen for these events that the instances of the class will broadcast.
First of all, that should be possible right?

Then second, how do we do this in Flash? If I try to use broadcastMessage, the compiler complains: There is no method with the name ‘broadCastMessage’.

The problem is that I would like to let my class broadcast an event, not an object I create at runtime like in the examples.