Button event handler newb question

Hi,

I am having a trouble with th basic understanding of button event handling

A very simple scenario is:

create a new file.
create two layer named ACTIONS and Button.
on the ACTIONS frame 1 add code:

myButton.onRelease = function() {
trace(“myButton has been clicked”);
}

on the Button layer in frame 5, drop in button instance with an instance name myButton.

now i am confused why this simple thing isnt working

without having to rely on using the older on(release) syntax on the button itself.

thanks for any help!

:book:

~mark