Try
pageText.displayValue.htmlText = '<p><a href="' + event:a1 + '"><img
src="' + plus + '" /><b>Our world-class scientists</b></a></p>';
I think it was reading your URLs as strings of text instead of
variables holding the URLs. Not positive though.
J.A.T.
Karl
Sent from losPhone
On Nov 10, 2009, at 6:47 PM, "Mattheis, Erik (MIN - WSW)" <[email protected]
> wrote:
How do I send an event from a click on an image in a textfield?
Clicking on the actual text fires the event, but it doesn't fire
when clicking on an image from the library placed inline:
pageText.displayValue.htmlText = '<p><a href="event:a1"><b><img
src="plus" />Our world-class scientists</b></a></p>';
pageText.displayValue.addEventListener(TextEvent.LINK,
toggleVisibility);
function toggleVisibility(e:Event) {
trace('text event triggered');
}
Thanks!
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders