This is what happend: In a big MovieClip container I put some child MovieClips. I wanted to make just one line for the whole container accesing the child movieclips. But this code didn’t work:
cont_mc.addEventListener(MouseEvent.ROLL_OVER, over);
function over(e:Event):void
{
trace(e.target.name);
}
// trace
cont_mc
I had to change the MouseEvent.ROLL_OVER to MOUSE_OVER, and then it worked:
cont_mc.addEventListener(MouseEvent.MOUSE_OVER, over);
function over(e:Event):void
{
trace(e.target.name);
}
// trace
child1_mc
Don’t ask me [...]