I haven't performed much actionscript coding which is probably why I'm running into this problem. I've created a movie symbol of an input box with a submit button that will reveal a portion of the stage if the user enters the correct "codeword" in the box. I duplicated the movie, as I will eventually have 5-6 of these "codewords" input boxes on the stage.

The code for the "submit" button looks like this:

on (release, keyPress "<Enter>") {
if (password eq "thisword") {
} else {

The problem arises when I click the <Enter> key to submit the codeword. It doesn't understand which instance of the movie symbol should be submitted. How do you rewrite rewrite the code above to attach it to a specific instance of the movie?