> I'm getting error cause Boundaries in this case is Null object

 

Sorry, Branko, but a little code snippet like this isn't enough to diagnose the problem. What's the text you're putting into the TextArea? What are you doing to trigger this code? You should post code for a minimal but complete <mx:Application> that exhibits your error, and tell us the user-interaction steps to make the error happen.

 

- Gordon

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Branko
Sent: Monday, October 23, 2006 1:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Lines in text area component

 

Here is my code:

import flash.geom.Rectangle;

var caretIndex:int = textArea.getTextField().caretIndex;
var Boundaries:Rectangle = new Rectangle;
var tField:TextField = textArea.getTextField();

Boundaries = tField.getCharBoundaries(caretIndex);

but I'm getting error cause Boundaries in this case is Null object.

Help me please to get this thing working if You see errors..

--- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]>
wrote:
>
> I'm not sure what you mean by "setting the number of lines in the
> TextArea component"? If you want to control where line breaks
occur, put
> the \n character into the 'text' String.
>
>
>
> To get the line position of a particular character try using
> getCharBoundaries() and then getLineIndexAtPoint().
>
>
>
> - Gordon
>
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com] On
> Behalf Of brankosli
> Sent: Wednesday, October 18, 2006 1:09 AM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] Lines in text area component
>
>
>
> Is there any possibility to set number of lines in Text Area
component?
> and if it's possible:
> How to retrieve current line position in Text Area component?
>
> Thanx in advance.
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to