How do I pass events around without breaking encapsulation?

How do I pass events around without breaking encapsulation?

Hi,

I am wondering how I can create an object or two and have them communicate through events, while not having them rely on each other.

I am building an image rotator that auto advances the images as well as a clickable interface to select images. I want the image rotator object to tell the interface object which image it's on so that the interface can change style accordingly.  The only way I see to do that is with the .trigger() event handler. This seems like it would break encapsulation.

Am I going about this the right way?  I am coming from an ActionScript event model.

Thanks for your help!
-B