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
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
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
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
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
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
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
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
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
: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
[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
11 matches
Mail list logo