# Flash MX 2004 Professional Help Needed

**URL:** <https://forum.kirupa.com/t/flash-mx-2004-professional-help-needed/230722>\
**Category:** flash\
**Created:** [June 28, 2007, 2:02pm UTC](https://forum.kirupa.com/t/flash-mx-2004-professional-help-needed/230722 "2007-06-28T14:02:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcaira](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rcaira](https://forum.kirupa.com/u/rcaira)\
**Post date:** [June 28, 2007, 2:02pm UTC](https://forum.kirupa.com/t/flash-mx-2004-professional-help-needed/230722/1 "2007-06-28T14:02:09Z")

</div>

Hi All,  
First time post. I am an e-Learning trainer who is building my first application and I ran into a problem no one seem to have a solution for. Please take a peek and tell me what I have missed.

I am building a virtual application that replicates on of our work programs that new employees need to learn. The short story is this. The user must enter a specific login script into an Input Text Field. I than want them to press only the Inside Enter key( As that is how this program is designed). When the Enter key is pressed, I need flash to verify the Variable which I have named “loginScript”, if the user entered it correctly it will direct it to a specific frame label, if not it will go to another. ":to: " Sorry for the long winded intro. The code I have used will work fine if I launch the SWF inside an HTML page, but when I launch it via a Blank\_MC, the enter key does not react. Here is the code… I am at the end of my ropes with this, so any help will be appreciated.

on (keyPress “\<Enter\>”) {  
login = loginScript  
if (loginScript == “hello xo1234,custrel.tahp”) {  
\_level.gotoAndPlay(“login2”);  
} else {

\_level.gotoAndPlay(“error1”);

Thank you in advance…
