OK, ccoonen, I got it to work like this:
In page.swf are only the buttons, no ActionScript.
In reader.swf I have an EventListener that listens to the
stage:
---> stage.addEventListener(MouseEvent.CLICK, show_info);
By event bubbling the CLICK will reach the stage.
The function show_info reads the name of the eventTarget and
does its action.
This works, but there are some quirks:
1. This woks only with MouseEvent.CLICK, no ROLL_OVER,
ROLL_OUT or DOUBLE_CLICK...
2. This listens to all the clicks the user does. And the
function has to filter out all objects that do not interest for the
action...
3. If it would work with ROLL_OVER and ROLL_OUT, too, this
would listen to nearly all mouse action... I think this would not
be very efficient...
Am i doing something wrong?
Are there better solutions?
Benedikt