Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-13-2009, 03:49 PM   #1
wwoelbel
Registered User
 
Join Date: Mar 2009
Posts: 2
Default Index bounds of a textarea

I would like to be able to determine the character index of the first(upper right) visible character in a textArea as well as the last (lower left). Understanding that lower-left may be more complex, Im starting with upper-right. Im using the mx_internal::getTextField() method and then using getCharIndexAtPoint(x,y). Initially I chose 1,1 for x and y but this seems to always return an index of -1. If I inflate x an y to 3,3 I get an index of 0 which initially makes sense. The problem is that when I put enough data in and scroll the text area, the returned index remain 0.

Any thoughts, tips, or pointers?

Bill
wwoelbel is offline   Reply With Quote
Old 03-13-2009, 07:41 PM   #2
wwoelbel
Registered User
 
Join Date: Mar 2009
Posts: 2
Default

As an update, it appears that there is an intrinsic gutter of "2" which means that the character at 2,2 will always be the upper left character. The failure to update is a problem with my understanding of the event system and what fires when.
wwoelbel is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
index out of bounds when extending datagrid pulse00 Flex 2, 3 & 4 4 12-04-2008 03:26 PM
Map mouse coordinates to Textarea index wGrand Flex 2, 3 & 4 4 10-07-2008 04:55 PM
RangeError: Error #2006: The supplied index is out of bounds. MSFX ActionScript 3.0 3 05-30-2008 08:53 AM
Error #2006 The suplied index is out of bounds Dart ActionScript 3.0 2 04-09-2008 07:47 PM
textArea and img tag Gibberish Components 3 03-29-2008 10:25 AM


All times are GMT. The time now is 08:27 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.