Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 22nd, 2003, 08:56 AM
1ain 1ain is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bath
Posts: 26 1ain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
textfield cursor question

hey,

i have a problem with positioning text within a textfield and i'm not sure of the solution.

i have a text field which, when a button is clicked, inserts some text into the textfield. i am currently doing this using the method:

mytextfield.text += "this button was clicked";

obviously, this is only going to add the new text to the end of the text string in the box. what i need it to do is when the button is clicked, add text to the position where the cursor was blinking before i moved the focus onto the button.

i can do this if i can get the position of the blinking cursor when the focus is killed (onKillFocos()). what i really need to know is how i can get the position within the text string...maybe as an attribute of the string.length.

any thoughts or suggestions would be welcomed.

thanks!

Last edited by 1ain : August 22nd, 2003 at 08:58 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > textfield cursor question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway