as3 html links

Hi, not sure whether to class this as a CS3 or a AS3 problem. As with life, I’ve inherited a job from a previous developer done in AS3. As most I’m a AS2 dev, slowly (very slowly) trying to learn his way around AS3. Most issues so far I’ve been able to resolve but this current issue is troubling me.

The project imports xml data and loads it into textboxes, fair enough nothing wrong there. Now they want to have html links inside the xml data. In AS2, simply writing a <a> tag was sufficient. Now in AS3, writing the tag creates a link but the user can’t use it without right clicking (as far as my testing has shown). Simply clicking the link does nothing, while right clicking gives the options ,open, open in new window, cancel.

I’ve tried searching for alternatives but seem to be coming to a dead end. I tried to use <a href=“event:someEvent”>Words</a> But haven’t got much luck getting that working either. Any suggestion or solutions?

are you using the .htmlText property instead of the .text for the text fields?

Make sure the containing movieclip / sprite has mouseEnabled = false while the text boxes have mouseEnabled = true

Hi Nikeido,
Yes the box is populated with htmlText = <a> etc…</a>
Have tried your suggestion about mouseEnabled, doesn’t seem to make a difference. It knows the link is there, and its attached to the type (right click -> open new window still works) but it just doesn’t work on a single mouse click. Any other thoughts you might have?

Lincs not work in locall comp.
Send swf to site.
http://dnadillo.dn.ua/fla/XML/img-xml.swf
http://dnadillo.dn.ua/fla/XML/mur_xml_file_img.xml

yes, mattrock’s point is very important!

Hi Guys thanks for the replies. @Alex: I’ve tried them live on the projects dev site and still has the same behaviour. @Mattrock: Each xml node is already encapsulated with a CDATA tag already.
This problem is really doing my head in as I have no idea why the problem would be AS3 related. I’ve tried hardcoding the traditional way (textbox, highlight text, add link in properties) and still uses this odd behaviour.
I’m I the only one experiencing this behaviour or is it happening to others aswell?