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.
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.
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
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
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
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
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,
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 =
8 matches
Mail list logo