Here is my problem, I got 2 layers , one has a button and a text box and the second (called movie) has a keyframe in 10 and 20. the button has the code below and it works fine when i put some text in frame 10 and 20 of “movie” layer. the problem is that i want to put a Loader in frame 10 and 20 of the movie layer but when i do the “Enter” key does not work any more. If i click on the button with the mouse it works fine but ckicking Enter with a loader anywhere in the movie breaks the keyPress “<Enter>” function. anyone have any ideas???
on(release, keyPress “<Enter>”) {
if (usr == “rooster” || usr == “10”) {
gotoAndStop(10);
usr="";
} else if (usr == “hen” || usr == “20”) {
gotoAndStop(20);
usr="";
} else {
gotoAndStop(1);
usr="";
}
}