[Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread sebastian
Hello again, a more difficult question maybe... Is there any way for me to capture a user click on an href tag inside of a CSS formatted html text field? Here is what I do: - CDATA formatted text in an XML file. - load it and associate a CSS file to a generated text field at run time. -

Re: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread Jim Armstrong
sebastian wrote: Hello again, a more difficult question maybe... Is there any way for me to capture a user click on an href tag inside of a CSS formatted html text field? Have you looked at asfunction? good luck! - jim -- Jim Armstrong::Mathematician::Algorithmist::Programmer

RE: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread Paul Venton
asfunction :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian Sent: 16 May 2007 12:13 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS2: capturing a href=link/a events? Hello again, a more difficult question maybe

Re: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread eka
Hello :) in actionscript (1 or 2) you can use the notation : a href=asfunction:myMethod,param1,param2Link/a In your code... in the parent of your textfield (the parent movieclip), you can creates the method myMethod example : var format:TextFormat = new TextFormat(arial, 12) ;

Re: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread JOR
You can use asfunction. function foo (bar) { trace (bar); } this.createTextField(my_txt, this.getNextHighestDepth(), 0, 0, 200, 100); my_txt.autoSize = true; my_txt.html = true; my_txt.htmlText = a href=\asfunction:foo, Hello Word!\Click Me/a; -- JOR James O'Reilly — Consultant Adobe

Re: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread sebastian
thank you everyone! you (and 'asfunction') rocks ;) seb. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software

RE: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread Durai Raj
] On Behalf Of sebastian Sent: Wednesday, May 16, 2007 4:43 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS2: capturing a href=link/a events? Hello again, a more difficult question maybe... Is there any way for me to capture a user click on an href tag inside of a CSS formatted html

RE: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread Paul Venton
Make sure you aren't putting spaces in your function call ... ie asfunction:myFunc,p1,p2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian Sent: 16 May 2007 15:17 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2: capturing

Re: [Flashcoders] AS2: capturing a href=link/a events?

2007-05-16 Thread JOR
If you try my example in a previous reply you'll see it working with passed parameters. -- JOR sebastian wrote: BTW: I've noticed the second parameter doesn't pass, only the first. I'm using flash 8, AS2. I think this is a known issue... but I could be wrong. I'm using a split function to