Click handler for a span
Hi
I have a TextFlow which contains several span elements. (Each has an ID attribute.) When the user clicks on one of these spans, a pop up should appear whe the user can style the span.
I tried to assign a different event listener to each of the spans, but failed.
This brings the same result for both spans:
element.tlf_internal::getEventMirror().addEventListener(MouseEvent.CLICK, regionClickHandler);
public function regionClickHandler(evt:MouseEvent):void {
Alert.show(evt.currentTarget.name.toString());
}
Any ideas?
Tobi
