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 Murphy <amur...@delvinia.com> wrote:

> 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 [a href="event:block1"]dolor sit[/a] amet.[/p]
>
>
> What I want is the beginning and ending indexes of the "dolor sit" text
> when
> the user clicks on it.  The TextEvent.LINK event passes out the value of
> the
> "href" within the link text (ie: "block1"), which isn't terribly useful in
> this case.
>
>
>
> ( ps:  I used square brackets in the example HTML text rather than angle
> brackets to try avoiding issues with the list's mailer, which doesn't like
> HTML code in emails. )
>
>
>  ------------------------------
> Andrew Murphy
> Interactive Media Developer
> amur...@delvinia.com
>
> Delvinia
> 370 King Street West, 5th Floor, Box 4
> Toronto Canada M5V 1J9
> P (416) 364-1455 ext. 232
> F (416) 364-9830
> W www.delvinia.com
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to