Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Text Input & Enter/return



I was wondering how i could code this so when i hit the enter key in the text input field it does the same as clicking the send button.

I have googled this for hours and i cant seem to find something that works.

This is for a TelnetSocket using AS3

You can download the files i have Here (adobe live docs site) **look for the TelnetSocket file


Code:
package
{
import flash.display.Sprite;
import flash.utils.ByteArray;
import flash.events.MouseEvent;
import com.example.programmingas3.socket.Telnet;

public class TelnetSocket extends Sprite
{
private var telnetClient:Telnet;

public function TelnetSocket() {
setupUI();
}
private function connect(e:MouseEvent):void {
telnetClient = new Telnet(serverName.text, int(portNumber.text), output);
}
private function sendCommand(e:MouseEvent):void {
var ba:ByteArray = new ByteArray();
ba.writeMultiByte(command.text + "", "UTF-8");
telnetClient.writeBytesToSocket(ba);
command.text = "";
}
private function setupUI():void {
loginBtn.addEventListener(MouseEvent.CLICK,connect)
sendBtn.addEventListener(MouseEvent.CLICK,sendCommand); //<-- Here is the "Send" button
}
}
}
I would appreciate any help thanks guys.



FlashKit > Flash Help > Actionscript 3.0
Posted on: 08-05-2008, 08:03 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Activate Enter/Return Key With Input Text?
To simplify, I have an input text box and a button. The user is asked to input some text and click a button that randomly serves up an animation. What I'm being asked to do is allow the user to hit their enter/return key as well so the animation will show whether they click the keys or the button. Would anyone be able to shed some light on how to do this?

thank you very much!

Intercepting Enter/Return In A Multiline Input Text Box
Hi,

I'm writing a chat client and I need the user to be able to enter text in a multiline text box because I want the text the user enters to wrap across several lines. However, when they press enter/return I want the message to be sent.

At the moment I have added a listener to the text box t_message:

t_message.addEventListener(KeyboardEvent.KEY_DOWN, f_on_key_down);

Then checked for a return in the handler:

private function f_on_key_down(event:KeyboardEvent) {
if (event.charCode == 13) {
f_send();
}
}

Finally, in the f_send() handler, I clear the contents of the input box:

public function f_send() {
v_stage.v_sfs.f_send_chat(t_message.text);
t_message.text = "";
}

However, the issue is that at the end of this, the return that triggered the f_on_key_down remains in the the text box. I've tried the restrict property but that doesn't seem to work with returns.

Does anyone know a way of stopping the return from appearing/remaining in the text box ?

Thanks in advance.

lcasa

Intercepting Enter/return In Multiline Text Input Boxes
Hi,

I'm writing a chat client and I need the user to be able to enter text in a multiline text box because I want the text the user enters to wrap across several lines. However, when they press enter/return I want the message to be sent.

At the moment I have added a listener to the text box t_message:

t_message.addEventListener(KeyboardEvent.KEY_DOWN, f_on_key_down);

Then checked for a return in the handler:

private function f_on_key_down(event:KeyboardEvent) {
if (event.charCode == 13) {
f_send();
}
}

Finally, in the f_send() handler, I clear the contents of the input box:

public function f_send() {
v_stage.v_sfs.f_send_chat(t_message.text);
t_message.text = "";
}

However, the issue is that at the end of this, the return that triggered the f_on_key_down remains in the the text box. I've tried the restrict property but that doesn't seem to work with returns.

Does anyone know a way of stopping the return from appearing in the text box?

Thanks in advance.

lcasa

Input Fields & Enter/return
i downloaded this script from http://livedocs.adobe.com/flash/9.0/main/samples/Programming_ActionScript3.0_samples.zip (TelnetSocket). I have been googleing for hours with no real success. The problem that i have is when i am in the input box (command) it is a pain to click Send every single time i type something. Is there a way that i could make it so i could just hit enter without hitting the send button every time? thanks for you help.

And if it wouldn't be too much of a problem could someone explain why this doesn't work in firefox or opera?







Attach Code

package
{
import flash.display.Sprite;
import flash.utils.ByteArray;
import flash.events.MouseEvent;
import com.example.programmingas3.socket.Telnet;

public class TelnetSocket extends Sprite
{
private var telnetClient:Telnet;

public function TelnetSocket() {
setupUI();
}
private function connect(e:MouseEvent):void {
telnetClient = new Telnet(serverName.text, int(portNumber.text), output);
}
private function sendCommand(e:MouseEvent):void {
var ba:ByteArray = new ByteArray();
ba.writeMultiByte(command.text + "
", "UTF-8");
telnetClient.writeBytesToSocket(ba);
command.text = "";
}
private function setupUI():void {
loginBtn.addEventListener(MouseEvent.CLICK,connect)
sendBtn.addEventListener(MouseEvent.CLICK,sendCommand);
}
}
}

























Edited: 08/05/2008 at 05:39:46 AM by timeba

Using Enter Key In An Input Text Box
Hey Folks -

I've got an Input Text box which I use for a search function of sorts. I've got it working fine with a "submit" button, but I'd like for the search action to also be initiated when the user enters their text and hits return inside the text box. I'm kinda stumped, but then I'm kinda new to Flash MX too so I'm sure there's an easy solution.

Thanks!

Enter Key In Input Text Box
Lets say i want the insert point in the input text box go to the next one when i press the Enter key.

Hope someone could help me. Thanks

Enter Key In Input Text Box
Lets say i want the insert point in the input text box go to the next one when i press the Enter key.

Hope someone could help me. Thanks

Multiline Input Text With Enter Key
I have a simulation where a user types a string of values into a multiline input text field, then clicks an OK button to check the text and move on (if the text is incorrect, an alert dialog box appears instead). The text field will look something like this:

text1
text2
text3
text4

I am trying to use the "
" escape character sequence to recognize the line breaks, but it's not working. Here's what I have:

on (release) {
if (input == "text1
text2
text3
text4"){
_root.gotoAndPlay(_root._currentframe+10);
} else {
setProperty(alert, _visible, true);
}
}

Can someone please tell me what I'm doing wrong?

Thanks!

Change Input Box Text After Enter
I have a series of input boxes that start off blank. When the user enters data and tabs or clicks out of the input box, I want to change the color of the input box. I know how to change the color property. I don't know how to code the change event. Can someone help please?

[CS3] Input Text - Limiting What They Can Enter
How do I limit the input text on a text box, i have a calculation which i want people to only be able to enter 11 or 20, i have tried the embed-restrict part of properties but it does not seem to work,, its got to be easy, but i am obviously doing something stupid,,,, i am extremely new to flash.. to say the least

Can't Enter Input Text In A LoadMovie
I'm about to lose it here.
I have a main movie that loads an external contact.swf with some input fields.
This used to work fine.
Now, when I test the contact.swf, I can type in the fields, but when I load it through the main movie (through an empty movie clip), I'm unable to type at all. As test, I created a new movie and loaded the contact.swf into it, and I can type in there also.

I've made a lot of changes tonight, including adding a preloader, but for the life of me I cannot figure out what's causing this.

I would really appreciate any help. My brain is fried, and it's completely possible I've missed something simple.

I'll post the files. The contact movie is loaded by clicking the "contact" button in the main movie.

Thanks in advance.

Can't Enter Input Text Through LoadMovie
I'm about to lose it here.
I have a main movie that loads an external swf (contact.swf) with some input fields.
This used to work fine.
Now, when I test the contact.swf, I can type in the fields, but when I load it through the main movie (through an empty movie clip), I'm unable to type at all. As test, I created a new movie and loaded the contact.swf into it, and I can type in there also.

I've made a lot of changes tonight, including adding a preloader, but for the life of me I cannot figure out what's causing this.

I would really appreciate any help. My brain is fried, and it's completely possible I've missed something simple.

You can download the .flas here:
http://www.loobis.com/tests/input%20trouble.zip

The contact movie is loaded by clicking the "contact" button in the main movie.

Thanks in advance.

Can't Enter Input Text Through LoadMovie
I'm about to lose it here.
I have a main movie that loads an external swf (contact.swf) with some input fields.
This used to work fine.
Now, when I test the contact.swf, I can type in the fields, but when I load it through the main movie (through an empty movie clip), I'm unable to type at all. As test, I created a new movie and loaded the contact.swf into it, and I can type in there also.

I've made a lot of changes tonight, including adding a preloader, but for the life of me I cannot figure out what's causing this.

I would really appreciate any help. My brain is fried, and it's completely possible I've missed something simple.

You can download the .flas here:
http://www.loobis.com/tests/input%20trouble.zip

The contact movie is loaded by clicking the "contact" button in the main movie.

Thanks in advance.

Input Text Return
I am looking for instuctions that will show me how to return input text from a form into a dynamic text field that is in the same movie.

Can this be done without a backend DB?

Return Input Text
I am looking for instuctions that will show me how to return input text from a form into a dynamic text field that is in the same movie.

Can this be done without a backend DB?

Text Input Detect Enter Key Press?
I have created the following math game
http://www.erecrex.com/math/

The game is working great, but there is one thing I don't like about it.  If the player enters their answer and presses enter, it inserts a return into the input field.  I would rather that fire the same code as the button to check the answer.

Does anyone know if that is possible and if so can you provide sample Action Script code?

Many thanks.  
Mark

Enter Key As A Trigger In An Input Text Field
Is it possible to create an input text field field and during keyboard entry, if the user purposefully or accidentally presses the ENTER key, some kind of action could occur, such as advancing to the next frame or whatever?

I would like to avoid using a button, unless it is technically not possible. This is what I have right now:


ActionScript Code:
if (Key.isDown(Key.ENTER)) {
               trace("The enter key has been pressed");
               }


Unfortunately, this does not quite provide me with the result I am looking for. The problem with this is, I have my focus set on the input text field, but the actionscript only reacts outside of the text input box.

Thanks

Return Input Text In New Timeline
I am looking for a tutorial that explains how to return input text into the dynamic text box. Currently I have it working when it is on the same timeline but I need it to work when I have the input text and dynamic text on different timelines.

Any help would be great.

Angel

Return Input Text In Different Timeline
I am looking for a tutorial that explains how to return input text into the dynamic text box. Currently I have it working when it is on the same timeline but I need it to work when I have the input text and dynamic text on different timelines.

Any help would be great.

Angel

Anyone Knows How To Disabe TAB,ENTER,CTRL Key In A Multiline Input Text ?
Anyone knows how to disabe TAB,ENTER,CTRL key in a multiline input text ?

I've made a movie :

onClipEvent(keyDown) {

... sintax checking code

}

But i want to disable TAB, CONTROL, ENTER...

Thanks

Is It Possible To Send A Variable From An Input Text Box On Click Enter
Hi there

is it possible to send a variable from an input text field: on keyPress enter, and how
[Edited by mmsag on 09-12-2002 at 06:45 AM]

Loading Backspace And Enter Key Into Input Text Field
im working on a file where i am loading key strokes into an input text field. forinstance when you tpye an "a" it loads an a into the input text field. here is the code that im using.

on (keyPress "a") {
textfield += "a";
}


the problem im having is that the i cant use this code to simulate the backspace key to remove text from the input box, and i can use the enter key to drop down a line. is there a way that i can get these two buttons to work in this input box? please help.

thanks

How To Pass Input Text With Enter Characters(like <br> In Html) To Php?
hi everyone,

first of all you're doing an amazing job in this forum, and i need some help from you experts

i'm making a message client runs on web, works like a mail client.
so here's my problem:
user wants to send a message. he types a looooong message body with lots of breaks in text. and i want send that text to php with loadVariablesNum and store it in mysql database. but i couldn't figure how to pass the breaks to php.

anyone knows how can i do that?
thanks !!!!!!!

[F8] Input Text Field To 'submit' On 2nd Return?
Hello there.
I've looked and looked for a solution to this and ALMOST got it working, but it's not behaving reliably enough.
I've got an input text field that I want to limit to 2 lines. I've set Selection.focus to the text field so you can just start typing when the field appears. If you press enter, you jump down to the second line (in the same field). If you press enter again, you 'submit' your text. This all works as intended - unless you click on the text field before typing. If you do that, when you hit enter the FIRST time it submits the text.
Currently I'm counting the occurences of '
' using indexof and submitting the text if the count is 2 or greater. Why it submits after 1 return, I do not know.
Is there a more elegant way to just 'get' the number of lines (rows) in an input text field (in AS2)?
If so, cheers in advance.

Input Text Return Data To Email
Hello,

I know there are a million ways to do this, but my code used to work and now it does not...

Summary of the situation: I have an input form on my client's site that sends user First, Last Name, Email and Phone Number to my client's email.
It was working fine, however when we switched our host, the emails stopped coming in. The host thought that perhaps the emails were getting routed to the site instead of our Google mail so they switched off the site email but it is still not functioning properly.

I can send the current code to anyone interested in taking a closer look.

Thank you in advance for your time.

Input Text Problem - Return = New Line
Hi,

Check out the attachments. The mailer.swf has an input text field which when you hit return will start a new line the other swf it won't do that. I have no idea what the difference is.

Thanks in advance.

ash

On(release)[enter]/<return> ?
HIjust a quickie- button commands:
on(release)
it has a return or enter variation doesnt it? can anyone supply me with that code snippet? thx
Shaf

Detect Enter Key Not Return Key
how can you check if 'enter' on the numeric pad has been pressed, NOT the return key?

i tried this but it doesn't work:

keyListener = new Object();

keyListener.onKeyDown = function() {
trace(Key.getCode());
if(Key.getCode()==108) {
// do something here...
};
}

Key.addListener(keyListener);

thanks!

this is in mx 2004 professional by the way

Key Code For Enter Or Return
for some reason I can't find the key code for return, enter or any of these keys qwertyuioplkjhgfdsazxcvbnm.. I am using this trace.

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); stage.addEventListener(KeyboardEvent.KEY_UP, keyUPHandler);
function keyDownHandler(event:KeyboardEvent):void {

trace("KEY DOWN")
trace("keyDownHandler: " + event.keyCode);
trace("ctrlKey: " + event.ctrlKey);
trace("keyLocation: " + event.keyLocation);
trace("shiftKey: " + event.shiftKey);
trace("altKey: " + event.altKey);
trace("=========================================== ===") }
function keyUPHandler(event:KeyboardEvent):void {
trace("KEY UP")
trace("keyDownHandler: " + event.keyCode);
trace("ctrlKey: " + event.ctrlKey);
trace("keyLocation: " + event.keyLocation);
trace("shiftKey: " + event.shiftKey);
trace("altKey: " + event.altKey);
trace("=========================================== ===") }

it works fine but when I press the keys mentioned above it just can't here them. Can anyone help.. I am new to action script and I am trying to learn using action 3.

Disable 'Return/enter' Key In As3
Hi
I am working in Flash AS3 and I have text fields.
Is there a way of diasbling the return/enter key?
(why? further down the line, I am importing a CSV file into InDesign and this causes a bug. Rather than having to edit the CSV file, I would like to 'sort it' at the source.)
Thanks in advance
R

<enter/return> Key In Email
in the body of my email message -

if you hit <return> - any text written after the return will not show up in the email body that i receive in my email box.


what if i used an onKeyDown function that says "onKeyDown of enter, create a line break"

how would i do something like that?

i think that my flash email form and my PHP are confused - thinking that an enter press means "submit" or go to next field, and thats why my messages are disappearing after an <enter/return> press.

and the ascii code for new line is 000A in hex

how would i write that script ? i looked in the Flash help that help didnt really help.

how do i tell it to "create a line break" ?

it seems that this <enter> this is a problem. I dont want it to "submit" or go to the next field. I just want the user to be able to press <enter> as a line break and then what ever they type after that - i want to be able to read.

PLEASE help!!

Use Return/Enter Key To Trigger Function?
I've got a little form in a movieclip where the student is to do some simple subtraction, then click the Record button to enter the data into a table. Problem is that if someone types in the answer, they naturally want to hit the Return key to enter the data, however, it instead puts a carriage return in their answer and when they try submitting with the Record button, it checks their answer and it is now wrong since the added carriage return does not match the answer they should have. Is there any way to make the Return key trigger the recordIt() function? Here is my code:

recordBtn.addEventListener(MouseEvent.MOUSE_DOWN,r ecordIt);

function recordIt(num) {
if (diameter.text == "85.80") {
if (difference.text == "1.10") {
MovieClip(this.parent).growth.d1999.text = "85.80";
MovieClip(this.parent).growth.g1999.text = "1.10";
helpText.text = "Good job. Click the button below to do the next year's measurement.";
recordBtn.visible = false;
} else {
helpText.text = "Incorrect result. Try again.";
}
} else {
helpText.text = "Incorrect diameter. Try again.";
}
}

Pressing Enter Or Return Key Script
I'm using a text input component that accepts text. I have a movie clip button that can be clicked and the results of my function appear in another text field. All works great. How can I make the button work and run its function if the user just hits the enter/return button on the keyboard instead of mouse clicking on the button?

Thanks,

Enabling "Enter" To Read Input Text
Hello everyone, I'll be quite basic
I threw together a quick program, and what it does is the user enters text into an input text field and then clicks a button. On the button release the input is then simply outputted in a sentence.

I was curious as to how I would enable the user to simply press "Enter" on his/her keyboard to read the text in. So basically instead of pressing a button, the user would enter the input and press enter...

Is there a simple way of doing this, possibly?

Hope things were clear and thanks for reading, any help is greatly appreciated

P.S - I am using Flash MX Professional 2004, if that makes a difference

Input Text Field, "Enter" Key Not Working
hi,
I am working on a guestbook and right now when I type in the text field, the "enter" key works, however, once the message is submitted and displayed via php, the "enter" command is ignored, so everything is just one long sentence with no breaks. Can someone tell me how to fix this?

thanks in advance

Al

Enter Code Into "input Text Box"...
Hey,

I've looked through the tutorials and can't seem to find what I'm looking for...

I wan't to allow a user to enter one of many codes into an "input text box" which can link to one of many pages each coresponding to a code.

Is there a tutorial I have missed or can someone help me???

THANKS!

jbrereton3

Text Fades With Enter But Not With CTRL-Enter
I have followed steps I've found in tutorials, but my TEXT does not fade when I run the web-page version (CTRL-Enter) even though it does fade when I just hit Enter inside Flash. (I have converted the text to Symbol -- both graphic and movie clip)

Images fade fine in both.

Is this something simple I'm blind to?

<Enter> Key.....( Input Box )
Hi everyone,

I would really appreciate if anyone could help me solve a problem that has been dragging for sometime.

I used Flash MX to create an e-learning environment( coding based ). The problem i'm facing is that when i finish typing in the code for one line and hit the <enter> key the cursor disappears and i've got to use the <tab> key to make to cursor move on to the next input box.

Could anyone explain how i could allow the cursor to move on to the next input box. I've tried setfocus, etc but nothing seems to work.

" Zirgz u mentioned to use:

Textfieldl.onKillFocus=function(){
Selection.setFocus(TextFieldl);
}

*The codes, do i use as it is or do i change the codes to suit the variables according to my input boxes names.

i need to solve this problem to pass my project so i really would appreciate if anyone of u guys could help..........

Thanks...

No INPUT? Won´t Enter The SITE
I have an INPUT TEXT FIELD and a GO button...

It works fine.
I store the text in a variable "name".

But if the user just hit GO it won´t store anything! Off course! He enter the site and a blank area will appears instead of his name.

How may I avoid it, I mean, how may I "force" the user to input something?

Thanks

Textfield Input With Enter
Ok, I'm a bit n00b to AS so please excuse if this is such a silly question. For a e-learning game I'd like to have a textfield (one line) where the user can input some text which is then imediately checked if he presses enter. There should be only input via keyboard, no mouse input at all.
Can I do this with the onChanged-listener? And if so how? If not what might be a workaround?
I tried to add AS to a textfield, but it doesn't seem to work. Do I have to add the code to the movie?
I'm trying to do this in ming so plain code would be nice.

[tip] Input Blur On Enter Key
If you have an "input" TextField, and you want it to blur and run some code when the "enter" key is pressed (just like normal html forms) then this may help.

Change "myInput_tf" to the instance name of your TextField.


ActionScript Code:
var keyListener = {};
keyListener.onKeyUp = function() {
if(Key.getCode() == 13) {
// YOUR CODE CAN GO HERE
var textfield = eval(Selection.getFocus());
trace("Enter key was pressed");
trace("TextField -> " + textfield);
trace("Input text -> " + textfield.text);
   
// BLUR TEXTFIELD
Selection.setFocus(null);
}
};
 
myInput_tf.onSetFocus = function() {
Key.addListener(keyListener);
};
 
myInput_tf.onKillFocus = function() {
Key.removeListener(keyListener);
};

If you have lots of "input" TextFields they can all use the same code, you don't need to rewrite that code for every TextField, you just need to setup the onSetFocus and onKillFocus functions for each TextField. Here's an example...


ActionScript Code:
myInput_tf.onSetFocus = function() {
Key.addListener(keyListener);
};
 
myInput_tf.onKillFocus = function() {
Key.removeListener(keyListener);
};
 
anotherInput_tf.onSetFocus = function() {
Key.addListener(keyListener);
};
 
anotherInput_tf.onKillFocus = function() {
Key.removeListener(keyListener);
};

To make life even easier you can do this...


ActionScript Code:
function setfocus() {
Key.addListener(keyListener);
};
 
function killfocus() {
Key.removeListener(keyListener);
};
 
myInput_tf.onSetFocus = setfocus;
myInput_tf.onKillFocus = killfocus;
anotherInput_tf.onSetFocus = setfocus;
anotherInput_tf.onKillFocus = killfocus;

Detecting ENTER On Input TextFields?
Hi,

Is there a way to check for the 'hit' of an enter key on a input text field? i.e. I want to wait until the user has entered a value before i assign the contents of the input text box to a variable and continue the rest of the movie.

Thanks

Problem With 'ENTER' Key Input And SetFocus
Hi all,

I have made an input text field which takes some input from the user and then runs some application or spawns an error window, depending upon whether the user has entered a recognized string (kinda like the "run" box in windows).

It works perfectly as far as clicking on the 'ok' buttons is concerned. The problem happened when I tried to make it work in the case where the user presses 'ENTER' key instead of clicking on the button. I want the text field as well as the 'ok' button in the error window, both to be able respond to 'ENTER' key. I have added both of them to keyListeners and done the respective checking for whether they have the focus on them or not using a small function.

The problem is that both of them respond to the Same 'ENTER' key. Meaning thereby that the error box kinda just flashes open and closes immediately because the 'ok' button there takes the last key pressed as input. I am not very experienced with flash to set some sort of counter thing or anything like that to stop it from doing so.

Will really appreciate if anyone can help me out on this. Attaching a part of the code

Code:
runbox_mc.run_txt.onKeyDown = function () {
if((Key.getCode() == Key.ENTER)&& this.isFocused()) {
if() do something
if() do something
}
}
runbox_mc.run_txt.isFocused = function () {
if (Selection.getFocus() == targetPath (this)) {
return true;
} else {
return false;
}
}
Key.addListener(runbox_mc.run_txt);
A simliar group of functions are used for the 'ok' button on error box

Thanks

Input Textfield, Jump With Enter?
Well I tried to delete my thread after I found out the answer but it wouldn't let me to do that. So I am sorry if I have wasted your time.

Take care,

J

FORM Input Field To Enter Site ?
I have a flash site with an intro, what I want to do is within flash, have a text input field and when the user types enter and hits submit the flash intro goes to the homepage an html page. Would this be an actionscript project? Could someone point me in the right direction.. thanks!!!

Bill

How To Submit Input Field With Pressing Enter?
Hi,
I have MC with input field and I want to post variable to php script from it just pressing Enter eg. email address press Enter to add it to db.
I have:

on(keyPress "<Enter>"){
user = "rw/subs.php?email=" add _root.cemail;
_root.loadVariables(user,this,"POST");
}

All work fine but keyPress "<Enter>" - when I use it the input field change into object with hand cursor instead of normal vertical line cursor, and I can't write anything.
I think that it is problem with keyPress "<Enter>", but how can I in other way use key Enter to submit variable?

Regards
Lee

How To Submit Input Field With Pressing Enter?
Hi,
I have MC with input field and I want to post variable to php script from it just pressing Enter eg. email address press Enter to add it to db.
I have:

on(keyPress "<Enter>"){
user = "rw/subs.php?email=" add _root.cemail;
_root.loadVariables(user,this,"POST");
}

All work fine but keyPress "<Enter>" - when I use it the input field change into object with hand cursor instead of normal vertical line cursor, and I can't write anything.
I think that it is problem with keyPress "<Enter>", but how can I in other way use key Enter to submit variable?

Regards
Lee

Flash MX: Detecting ENTER Key In Input TextField
Hi all

I want to detect the pressing of the ENTER key in a single line, INPUT field. I basically want to echo the textfield to the screen. User types into a single field, presses ENTER and the line is echoed and the input cleared.

I would like the textfield to encompass the key handling thus not to have to handle a press of the enter key when not in that input textfield.

Thanks a lot and best wishes to all.

M.

Detect The ENTER Key Pressed In An Input TextField
Hi all

I want to detect the pressing of the ENTER key in a single line, INPUT field. I basically want to echo the textfield to the screen. User types into a single field, presses ENTER and the line is echoed and the input cleared.

I would like the textfield to encompass the key handling thus not to have to handle a press of the enter key when not in that input textfield.

Thanks a lot and best wishes to all.

M.

Copyright © 2005-08 www.BigResource.com, All rights reserved