flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: find and replace strings in TextFlow class
Date Tue, 06 Jan 2015 14:42:17 GMT
1. Determine the location of the text within the string that you want to replace.
2. Determine the end location.
3. Create a SelectionState with those values as anchor and active positions.
4. Use EditManager.insertText() and supply the new text string and selection state.

Harbs

On Jan 6, 2015, at 12:28 AM, Carlos Cruz <carlos@nbtbizcapital.com> wrote:

> I'm trying to create  search and replace  a string logic for  TextFlow text.
> Can anyone offer some input / advice on finding the start and end position
> of a string in the TextFlow elements and replace it .
> 
> 
> 
> I am able to convert the TextFlow contents into a string and use string
> methods and Regex patterns.
> 
> 
> 
> Thanks!!
> 
> Carlos
> 
> 
> 
> 
> 


Mime
View raw message