I have a stripped down FLA here: [COLOR=#0055bb]http://www.webmarksonline.com/temp/detectenter.fla[/COLOR]
where if you click the button, a label saying “Button clicked” will display. This was accomplished using the following actionscript attached to the button…
on(release) {
display._visible =true;
}
Now I want to make it so that when the enter key is pressed in the edit field, the same thing happens.
On the button actionscript, I have used …
on (keyPress “<Enter>”) {
display._visible = true;
}
But does not work. Why not? Google search says that this should work. I’m on Flash 8, by the way.