RE: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Andrew Murphy
Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu Sent: August 31, 2010 10:15 am To: Flash Coders List Subject: Re: [Flashcoders] Link text indexes in a TextField so whats your solution? On Tue, Aug 31, 2010 at 9:42 AM

Re: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Ktu
routi > Sent: August 31, 2010 05:37 am > To: Flash Coders List > Subject: Re: [Flashcoders] Link text indexes in a TextField > > > I have textfield link detection in this class - > > > > https://code.google.com/p/kurstcode/source/browse/trunk/libs/com/kurst/utils >

RE: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Andrew Murphy
Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karim Beyrouti Sent: August 31, 2010 05:37 am To: Flash Coders List Subject: Re: [Flashcoders] Link text indexes in a TextField I have textfield link detection in this class

RE: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Andrew Murphy
Good morning. I came up with a solution, it's not elegant but it works: 1) Break up the HTML into an array of chunks of code based on where the links occour. So this: [p]Lorem ipsum [a href="event:block1"]dolor sit[/a] amet.[/p] Gets turned into this: blocks[0] = [p]Lorem ipsum

Re: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Karim Beyrouti
> -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan > Mynarcik > Sent: August 30, 2010 14:35 pm > To: Flash Coders List > Subject: Re: [Flashcoders] Link text indexes in a

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik Sent: August 30, 2010 14:35 pm To: Flash Coders List Subject: Re: [Flashcoders] Link text indexes in a TextField You will hav

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
: August 30, 2010 14:15 pm To: Flash Coders List Subject: Re: [Flashcoders] Link text indexes in a TextField Andrew Murphy skriver: > Hi. :) > > Does anyone know of a way to get the beginning and ending index of a link > within a TextField? > > I want the indexes of the beginning an

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
Link text indexes in a TextField This might give you some ideas on accomplishing what you needs to do -use split().join(): http://troyworks.com/blog/2008/03/14/flash-textfield-actionscript-hyperlink- in-as30/ _ _ _ Erik Mattheis Senior Web Developer Minneapolis T  952 346 6610 C 612 377 2272

Re: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Nathan Mynarcik
You will have to cull out what you want: **Psuedo Code** var stuff:String = "[a href="event:block1"]dolor sit[/a]"; stuff.substr(stuff.indexOf("[a href="event:block1"]"), stuff.indexOf("[/a]")); Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Mon, Aug 30, 2010 at 1:46 P

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Mattheis, Erik (MIN-WSW)
This might give you some ideas on accomplishing what you needs to do -use split().join(): http://troyworks.com/blog/2008/03/14/flash-textfield-actionscript-hyperlink-in-as30/ _ _ _ Erik Mattheis Senior Web Developer Minneapolis T  952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts he

Re: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Henrik Andersson
Andrew Murphy skriver: Hi. :) Does anyone know of a way to get the beginning and ending index of a link within a TextField? I want the indexes of the beginning and ending of the text that makes up the link. For example if I pass the following HTML text into the TextField: [p]Lorem ipsum