RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Jason Lutes
> Consider using XPath, as in this example: > > http://www.majordan.net/test/flashlinks/ Geez that's a shload of class files in that Zip file! [grin] I'm going to explore XPath a little more when I free up some time. I really appreciate everyone's willingness to help me out. Let me outline

RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Michael A. Jordan
= str.indexOf("", startBracket); } var linkText = str.substring(startBracket + 1, endBracket); trace("linkText: " + linkText); } init(); - Original Message - From: "Jason Lutes" <[EMAIL PROTECTED]> To: Sent: Thursday, April 13, 2006 2:31 PM Subject: [Fla

RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
> Is there a way to identify the contents of a link element in an > HTML-enabled text field? How can I pass the text of the link > to a function invoked by the link? Wait, you mean you want to pass the text of the link (inside the a tag) via the function you're calling in the link? You'll have t

RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
> > Assuming Highlander TextField: > > There can be only one! Flash likes to capitalize stuff and add TARGET to the href so here's the fixed (and tested) code. txt.htmlText = "McCloud"; a = txt.htmlText.split("http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf

RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
> Assuming Highlander TextField: There can be only one! txt.htmlText = ""; a = txt.htmlText.split("")[0]; trace(a); :P ___ This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business informa

Re: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread JesterXL
xOf("", startBracket); } var linkText = str.substring(startBracket + 1, endBracket); trace("linkText: " + linkText); } init(); - Original Message - From: "Jason Lutes" <[EMAIL PROTECTED]> To: Sent: Thursday, April 13, 2006 2:31 PM Subject: [Flashcoders]

RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
Could you get the .htmlText of the text field and using split to pull the link out? txt.htmlText = ""; var a = txt.htmlText; var b = a.split("")[0]; trace(c); // link There are also regex methods for Flash is you hunt around for them. HTH, Steven ___

Re: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Michael Bedar
I don't think you can directly get the link text, but you can add parameters to asfunction calls, so maybe you can do it that way? -- Michael Bedar [EMAIL PROTECTED] On Apr 13, 2006, at 2:31 PM, Jason Lutes wrote: Is there a way to identify the contents of a link element in an HTML-enable

[Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Jason Lutes
Is there a way to identify the contents of a link element in an HTML-enabled text field? How can I pass the text of the link to a function invoked by the link? - Jason ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search