Please see the code below:
 
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" creationComplete="initApp()">
 <mx:Script>
  <![CDATA[
   import mx.controls.Alert;
   function openLink()
   {
    Alert.show("Link Clicked");
   }
   function initApp()
   {
 
    txt.htmlText = "Click <a href=''><font color='#0000FF'><u>here</u></font></a> for more details.";
   }
  ]]>
 </mx:Script>
 <mx:TextArea id="txt" />
 
</mx:Application>
 
 
 
You can also use _javascript_: in <a /> tag or you can put a url there...
 
-abdul


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
Sent: Wednesday, December 14, 2005 4:08 PM
To: flexcoders
Subject: [flexcoders] html link in text

hi,
 
  i want to have a text with a html link in between.. like
 
"click HERE for more details" .. in this sentence HERE alone should be a link... how to do this
 
thanks,
nithya

Send instant messages to your online friends http://uk.messenger.yahoo.com

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to