Hi,
I have a very bizarre issue with flex. I have created an htmlText that has a link in it. The link is:
<a href=“asfunction:unpausePlayback”>Continue »</a>
I have also tried:
<a href=“event:unpausePlayback”>Continue »</a>
On the creation function of the text object i add a listener:
_text.addEventListener(TextEvent.LINK, unpausePlayback);
if (_text.hasEventListener(TextEvent.LINK) != true){
Alert.info("Hmm");
}
The event never gets called. However if i change it to “== true” so that the alert gets called then it works fine. Even if i add a totally unrelated alert before or after the listener then the listener works, but without an alert (which i really can’t have in the final version) the listener just never works.
I have no idea why and it is driving me nuts! Any ideas?
Thanks