Hi:
I am new to AS3 and I am going insane trying to figure this out. I have a blank (new) AS3 document, 200pixels x 200 pixels, with one (the first) frame.
I add this code to this first frame:
trace(this + ", is a movie clip: " + (this is MovieClip));
addEventListener(MouseEvent.MOUSE_MOVE, movef);
function movef(e) {
trace(e);
}
No matter how much I move my mouse, the function is NOT invoked and NO event trace message is seen.
However, I do see this:
[object MainTimeline], is a movie clip: true
Now I know, there is sample code, that creates and attaches a new movie clip (via new MovieClip(), addChild)…BUT that is NOT the question I am asking or the solution I am seeking.
My question is this:
Since the main document (MainTimeline) is itself a movie clip (and a child of stage), why does it NOT dispatch any mouse events ?
I have looked far and wide for an answer to this, and have found nothing that answers this, either at adobe or elsewhere.