Re: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Karim Beyrouti
ext. 232 F (416) 364-9830 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

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 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 Ktu
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 /TextFieldUtils.as using it for link roll-over / roll-out events. And I think it could be extended

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-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

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

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 PM, Andrew

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik (MIN-WSW) Sent: August 30, 2010 14:23 pm To: Flash Coders List Subject: RE: [Flashcoders] Link

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
: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 and ending of the text that makes up the link

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
[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 have to cull out what you want: **Psuedo Code** var stuff:String = [a href=event:block1]dolor sit