RE: [flexcoders] Buttons in text

2008-02-15 Thread Merrill, Jason
Ooops - my bad, it wouldn't be AS1 or 2 in Flex, I thought this was
posted on a Flash list.  For AS3, check out TextEvent.LINK.  Here is a
quick sample I googled:
 
var linkText:TextField = new TextField();
linkText.htmlText = 'Link: Click';
addChild(linkText);

linkText.addEventListener(TextEvent.LINK, linkEvent);

function linkEvent(event:TextEvent):void {
trace(event.text); // Link Clicked
}
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, February 15, 2008 7:56 AM
To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] Buttons in text




Which version of Actionscript?  If you mean 1 or 2, read up on
asfunction.
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of tvikatos
Sent: Friday, February 15, 2008 5:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Buttons in text



I want to have text, where specific words act like
buttons, i.e. when 
clicked dispatch an event. Something like hyperlinks
that instead of 
opening up web pages, do whatever I want them to do.

Any idea how to achieve this?





 



RE: [flexcoders] Buttons in text

2008-02-15 Thread Merrill, Jason
Which version of Actionscript?  If you mean 1 or 2, read up on
asfunction.
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of tvikatos
Sent: Friday, February 15, 2008 5:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Buttons in text



I want to have text, where specific words act like buttons, i.e.
when 
clicked dispatch an event. Something like hyperlinks that
instead of 
opening up web pages, do whatever I want them to do.

Any idea how to achieve this?



 



Re: [flexcoders] Buttons in text

2008-02-15 Thread Tom Chiverton
On Friday 15 Feb 2008, tvikatos wrote:
> Any idea how to achieve this?

LinkButton ? Text.htmlText with A HTML tags in ?


-- 
Tom Chiverton
Helping to greatly aggregate dot-com schemas
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/