# Input textbox return value; user problem

**URL:** <https://forum.kirupa.com/t/input-textbox-return-value-user-problem/274811>\
**Category:** flash\
**Created:** [November 5, 2008, 9:25am UTC](https://forum.kirupa.com/t/input-textbox-return-value-user-problem/274811 "2008-11-05T09:25:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FordCorsair](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@FordCorsair](https://forum.kirupa.com/u/FordCorsair)\
**Post date:** [November 5, 2008, 9:25am UTC](https://forum.kirupa.com/t/input-textbox-return-value-user-problem/274811/1 "2008-11-05T09:25:59Z")

</div>

How do I code for a “Return or Enter” keystoke made by the _user_?

**wordinput1\_txt** is a multiline with wrap on input textbox. When **submit\_btn** is pressed it should then make **tick\_mc** or **cross\_mc** visible drepending if the inputed text (Blue Chair Two) was correct.

When testing, only **cross\_mc** is made visible even when the inputed text is correct. This works fine when using a single line input text box and the _user_ doesn’t do a return or the text wrappping.

I’m asking this now 'cos later in the project there will be a test with upto four lines of text for the user to input.

```php

 
tick_mc._x = 244.4;
tick_mc._y = 128.4;
tick_mc._visible = false;
cross_mc._x = 244.4;
cross_mc._y = 128.4;
cross_mc._visible = false;
//
stop();
//
submit_btn.onRelease = function() {
 if (wordinput1_txt.text == "Blue Chair Two") {
  tick_mc._visible = true;
  cross_mc._visible = false;
 }else{
  cross_mc._visible = true;
 }
};

```

Any help apreciated. Using Flash 8 on WinXp, PC.

Thanks, Dom

eddited: adding verson of Flash.
