Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-20-2001, 05:14 PM   #1
Registered User
Join Date: Mar 2001
Posts: 1

I need help in being able to allocate specific keys to certain buttons to fill into a text field. If there is any easy way of doing this it would be most appreciate. All my attempts up to date have been failures. I can allocate variables to to a button to fill in a letter to a text field,
but it needs to be able to tab various fields, and fill it with multiple characters.

In short its a digital form filled in by a touch screen keyboard, all in the same flash movie.

Thanks in advance
Grant is offline   Reply With Quote
Old 03-21-2001, 07:07 AM   #2
ActionScript.org Founder
Jesse's Avatar
Join Date: Nov 2000
Location: New York
Posts: 8,736

Well each of your field has a variable name right?
So how about this. You have a variable called 'currentField' which holds the name of the variable which you are currently working on. Say your form has a field marked 'name' and another marked 'phone'. SO while working on the name field/variable you set:
currentField = "name";

Then each of your buttons appends its letter to the current variable/field. So the letter D would have this code on it:

set (_root.currentField, (eval(_root.currentField))+ "d");

This sets the current variable to its current value plus the letter 'd' on the end.

So all you have to do is change the currentField variable and the field you're effecting will change



Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 12-31-2008, 04:33 PM   #3
Registered User
Join Date: Dec 2008
Posts: 1
Default how to delete a character?

i have a keyboard working using your example... I can't figure out how to make a backspace button to delete a character. Any ideas?

Is it possible to have the data entered into the text box focus on the newest added character?

chrisPDI is offline   Reply With Quote

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
touch screen with flash pound Other Flash General Questions 3 05-01-2011 06:19 AM
Touch screen with flash problem tsong_1037 ActionScript 1.0 (and below) 6 02-03-2010 06:43 AM
On Screen Keyboard Script bnv ActionScript 2.0 0 02-21-2006 05:42 AM
Create own touch screen???? D-flyer Projectors and CDs 4 08-02-2004 10:00 AM
On screen keyboard and input textbox kez ActionScript 1.0 (and below) 4 11-22-2002 07:51 AM

All times are GMT. The time now is 09:05 PM.

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.