Sharing dispatched events

Hi,

I have two classes, classA and classB

classA is created on the maintimeline

var myClass:ClassA = new ClassA();
addChild(myClass);

one of the methods dispatches an event

dispatchEvent(new Event(“createdIt”)

How do I create an eventListener for this event in classB?