Nithya,
You can still use this approach, you can write a
generic-function in your main application file. Invoke that function from
link...
So no matter textfield is located, you can invoke that
function using
"mx.core.Application.application.functionName"...
Sounds good?
-abdul
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
Sent: Friday, December 16, 2005 8:13 PM
To: [email protected]
Subject: RE: [flexcoders] html link in text
thanks abdul... i have one more issue with this... say i have the
openLink() function in another mxml file and the text is not in the main
application..its in a panel (a custom component)...then how should i call
it by using a href? see the link should not open a new browser it shuold instead
call a function which would show a popup window(a title window- which a local
component) please help me in this issue...
thanks in advance
nithya
Abdul Qabiz <[EMAIL PROTECTED]> wrote:
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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
Sent: Wednesday, December 14, 2005 4:08 PM
To: flexcoders
Subject: [flexcoders] html link in texthi,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 thisthanks,nithyaSend instant messages to your online friends http://uk.messenger.yahoo.com
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
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

