[Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Mark Burvill
Hi List, If you have an href link within an html text field in Flash, is there any way of detecting when the user clicks on it? Not being a standard button, you obviously can't do: on (press) { doStuff(); } But is there another way? Cheers.

RE: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Alain Rousseau
Hi Mark, You should look into asfunction http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1719.html It lets you call AS functions through links in a html textlike this : a href=asfunction:myFunction,arg1,arg2 HTH A.

Re: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Gustavo Teider - Adobe Flash Developer
Mark Burvill escreveu: Hi List, If you have an href link within an html text field in Flash, is there any way of detecting when the user clicks on it? Not being a standard button, you obviously can't do: on (press) { doStuff(); } But is there another way? teste.htmlText = a

Re: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Mark Burvill
Lovely - that's what I need. Cheers. Alain Rousseau wrote: Hi Mark, You should look into asfunction http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1719.html It lets you call AS functions through links in a html textlike

RE: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Merrill, Jason
A side note, fairly irrelevant, but I heard/read somewhere asfunction is going away in AS3 - I think I saw that in the AS3 documentation - anyone know what the equivalent form would be in the future? Jason Merrill Bank of America Learning Organizational Effectiveness -Original

RE: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Marc Hoffman
And on yet another side note, I believe only one arg can be passed with an a-href asfunction call. However, it could contain several args separated by a character other than a comma, such as the pipe (|) character, then in the function declaration, convert the pipe character to comas to split

RE: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Ryan Potter
I don't know squat about as3 yet, but from the docs there is this: http://livedocs.macromedia.com/labs/as3preview/langref/flash/text/TextField .html#event:link -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, November 08,

RE: [Flashcoders] Detecting a click on an html link in a text field

2006-11-08 Thread Merrill, Jason
Thanks Ryan, so I guess the AS3 way will be that it is an event, and you just create handlers. The example they gave in case anyone is curious is: private var myMP3:Sound; public function TextField_event_link() { myMP3 = new Sound(); var list:TextField =