first of all, thanks for your response! It works now. I use the approach with the MouseEvent-Listener, because i hope that would enough for me. I used the custom event when i started this thread, because it was the only sample code if found for dispatching events from a view component (employeeAdmin demo). Now i ended up with that in the Mediator
override public function onRegister():void
{
assetPreview.addEventListener( MouseEvent.CLICK, onClick);
}
As you said, it listens for the event, no matter if i redispatch the MouseEvent or not. Which seems normal, because the listener is added to the whole view component. Is there a way to add the listener for each image only? Maybe i then get better results on the clicked target (the loader object)?
If thats not possible, i refer to Jason:
The example you took from is more if you want a way of identifying which item was clicked and to dispatch custom events based on that knowledge.
How would you do that with custom events?