all groups > flash (macromedia) > august 2005 >
You're in the

flash (macromedia)

group:

touch screen help


touch screen help alisona
8/10/2005 9:59:08 PM
flash (macromedia):
I am programming for a touch screen, which I have never done before. My users
need to enter a password and username on the touch screen. so I need my
graphical interface to funtion as a keyboard? I do not know how to do this. I
think I need the button to call a letter and enter it into the target text
field? But I don't know how to make a button commandt such as on(press) then
some how equal typing. Help please please. Thanks.
Re: touch screen help pwiop
8/10/2005 11:24:26 PM
It would be a reasonably simple task to create a keyboard that generate strings
(the letters you type) and add them to a variable

create buttons as letters in the alhphabet, name them butA, butB etc then on
the first frame ad the following code (adapt for each button of course)

var myString ="" //initially set the string to null

butA.onRelease=function(){
myString+="a"
trace(myString)
}
butSpace.onRelease=function(){ // add a space
myString+=" "
trace(myString)
}

This is not very sophisticated so yoiud need to tart it up a little
Re: touch screen help pwiop
8/10/2005 11:24:49 PM
It would be a reasonably simple task to create a keyboard that generate strings
(the letters you type) and add them to a variable

create buttons as letters in the alhphabet, name them butA, butB etc then on
the first frame ad the following code (adapt for each button of course)

var myString ="" //initially set the string to null

butA.onRelease=function(){
myString+="a"
trace(myString)
}
butSpace.onRelease=function(){ // add a space
myString+=" "
trace(myString)
}

This is not very sophisticated so yoiud need to tart it up a little
Re: touch screen help alisona
8/11/2005 12:00:00 AM
Re: touch screen help Jean Christophe Avard
8/16/2005 10:12:41 AM
I would also check for any modifier key (shift, ctrl) activated...

jcavard

[quoted text, click to view]

AddThis Social Bookmark Button