什么是目标实例?我有点困惑。它是“参数”吗?
在这段代码中,目的是event.target
什么?它有什么作用?
addEventListener(MouseEvent.MOUSE_OVER , hover);
function hover(event:MouseEvent):void
{
event.target.alpha = .4;
trace("Now over " + event.target.name);
}
addEventListener(MouseEvent.MOUSE_OUT , normal);
function normal(event:MouseEvent):void
{
event.target.apha = 1;
trace("Now Off " + event.target.name);
}