OK, I am testing some code I got from "ActionScript for Flash MX: The Definitive Guide" (good book). It is attached to a movie clip, which does have an instance name and this is it:
this.onMouseDown = function () {
trace("hi");
}
and I get this error message:
Scene=Scene 1, Layer=folder1, Frame=1: Line 3: Statement must appear within on/onClipEvent handler
this.onMouseDown = function () {
I got the code right from the book and it's applied in the right context (ie. on a movie clip w/ instance name) and the book is designed for ActionScript for Flash MX, which I have! any ideas why this isn't working?