getTextRuns is a method of flash.text.TextField, not mx.controls.TextArea. To get the textField of the TextArea either subclass the TextArea or use textArea.mx_internal::getTextField().
- Dan Freiman On Feb 12, 2008 11:27 AM, Derrick Anderson <[EMAIL PROTECTED]> wrote: > hi- unfortunately my code is erroring on that method > > var formats:Array = textArea.getTextRuns(0,textArea.text.length); > > getTextRuns is not defined.. textArea is an mx:TextArea component, know > what could be wrong? > > thanks, > d. > > > On Feb 12, 2008 10:53 AM, Derrick Anderson < > [EMAIL PROTECTED]> wrote: > > > i'm going to try it out right now but from the description it looks like > > EXACTLY what i'm looking for > > > > -- thanks! > > > > > > On Feb 12, 2008 10:48 AM, Daniel Freiman <[EMAIL PROTECTED]> wrote: > > > > > Are you looking for this? > > > http://nondocs.blogspot.com/2007/05/flashtexttextfieldgettextruns.html > > > > > > - Daniel Freiman > > > > > > > > > > > > > > > On Feb 12, 2008 10:41 AM, Derrick Anderson < > > > [EMAIL PROTECTED]> wrote: > > > > > > > hi, does anyone know how i can get a list of all the textranges in > > > > a text field? i am building something that works like a spell checker > > > > and i > > > > have a need to get a list of all TextRanges and their styles in the text > > > > field. > > > > > > > > thanks, > > > > d. > > > > > > > > > > > > > > > > > > >

