Advanced multi user input text
- iluvAS
-
iluvAS
- Member since: Nov. 18, 2007
- Offline.
-
- Forum Stats
- Member
- Level 08
- Game Developer
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??
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
- PSvils
-
PSvils
- Member since: Feb. 3, 2010
- Offline.
-
- Forum Stats
- Member
- Level 01
- Game Developer
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
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.
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
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
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.


