you don't need the onClipEvent. That block will work as well in a frame.

Actually your setup shouldn't work. Since you used that clipEvent on a movieclip, myArray now is part of that movieclip scope, instead of the timeline where your button sits.

For exemple if that movieclip instance name was mc, you should reference the Array as: mc.myarray

More info about Arrays in the liveDocs (links in my footer)

gparis