Be a Supporter!

Advanced multi user input text

  • 213 Views
  • 5 Replies
New Topic Respond to this Topic
iluvAS
iluvAS
  • Member since: Nov. 18, 2007
  • Offline.
Forum Stats
Member
Level 08
Game Developer
Advanced multi user input text 2011-08-31 23:25:32 Reply

So I'm developing a swf utilizing the beta multitouch adobe released. This swf is meant for a touchscreen tv (interactive video wall) and multiple users will be using it simultaneously. So as i was making the virtual keyboard for users to enter text with, i came across the thought of a problem:

"how do i move the cursor of an input text field by code"

And trying to solve this problem another problem popped into my head; "cursors only exist in text fields that are 'focused' on and flash can only focus on one object at a time".

So I wondered how i can go about to allow multiple users to use multiple virtual keyboards to enter in text for multiple text fields at the same time? My Solution: Don't use focus. So I thought of utilizing dynamic text fields instead of input text fields.

So then my question to you is how do i create a carat that detects the position of string in text field to simulate input text fields but using dynamic text boxes? Besides this solution, any other simpler solutions that i might have missed out??


BBS Signature
JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Advanced multi user input text 2011-09-01 02:33:44 Reply

lol 'utilizing'

PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to Advanced multi user input text 2011-09-01 02:41:25 Reply

At 9/1/11 02:33 AM, JeremysFilms wrote: lol 'utilizing'

lol you look like an emo reject begging for a dick up your asshole

Someone's worried about his penis size today...
So then my question to you is how do i create a carat that detects the position of string in text field to simulate input text fields but using dynamic text boxes? Besides this solution, any other simpler solutions that i might have missed out??

Please explain better? You can use String.indexOf() to find the position of a certain string in the textfield, and then there should be plenty of TextField functions to select certain regions of it etc., something like that?

iluvAS
iluvAS
  • Member since: Nov. 18, 2007
  • Offline.
Forum Stats
Member
Level 08
Game Developer
Response to Advanced multi user input text 2011-09-01 03:51:47 Reply

My current solution is basically to create an input text box out of a dynamic text box where there will be a line ' | ' that appears to the place where text will appear and this text is entered in via touchscreen virtual keyboard in the swf itself as well. Im basically on the right path, as of now I have made a class to dynamically calculate each character in the ascii table's width and store it into an array for any font i choose the textbox to have. And I'll have to come up with something to position the line ' | ' and use split, join and append functions to add in letters into the textfield via the virtual keyboard.

And i repeat main reason im doing this is because i have multiple users typing in simultaneously so i can't use input text field bcuz i can't use focus.

Anyways this thread can be killed cuz I'm almost done with my custom dynamic text field class, just have to link it up to a virtual keyboard instance.


BBS Signature
JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Advanced multi user input text 2011-09-01 15:59:55 Reply

At 9/1/11 02:41 AM, PSvils wrote:
At 9/1/11 02:33 AM, JeremysFilms wrote: lol 'utilizing'
lol you look like an emo reject begging for a dick up your asshole

lol you look like a plunger stalker

fixplz
fixplz
  • Member since: Jul. 29, 2011
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Advanced multi user input text 2011-09-02 09:47:23 Reply

Textfields have methods to resolve positions of the content. See getCharIndexAtPoint.
That's the point of OO, to see what's possible, check the methods of the relevant objects.