Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Sending a href link through data services

jake2891
Level 1
Level 1
Hi Ive been tring to send a href link in my chat but it just
appears in the plain text and not clickable. Does anyone know how
to do this or if its possible.



private function sendMessage():void

{

var message:AsyncMessage = new AsyncMessage();

message.body = {userId: userId.text, recipientId:
dg.selectedItem.userId, text:lbl.htmlText};

producer.subtopic = dg.selectedItem.userId;

producer.send(message);

}



<mx:Label id="lbl" selectable="true" >

<mx:htmlText>

<![CDATA[<a href='event:
http://www.adobe.com'>Navigate
to Adobe.com.</a>]]>

</mx:htmlText>

</mx:Label>

1 Reply
SujitG
Level 2
Level 2
Hi,



If I am correct, as far as the messaging is concerned it is
just a text which you are passing. If you want the text (Anchor in
your case) to be work as an anchor, then I think you need to handle
that when you are displaying the text.



Hope this helps.