Hi. :) Mirror regions sound like they might do the job, but I'm limited to working with the v9 plug-in. (Sorry.. I should have mentioned that in my first email.)
I'm not certain what you mean by using multiple content elements. The effect I'm looking for is that when the user clicks on a link the Flash draws a highlight around the link's text and passes the beginning and ending indexes of that text to another function. I really do need the beginning and ending indexes. ------------------------------ 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 -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson Sent: 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 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. Are you sure that you need the positions? The flash.text.engine package has this nifty thing called mirror regions, perhaps they are useful here? Or perhaps you just need multiple content elements? It is hard to help when you don't know the purpose. _______________________________________________ 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