我正在尝试在 Flash 应用程序中制作自己的按钮。这是一些代码:
addEventListener(MouseEvent.MOUSE_OUT, Out);
addEventListener(MouseEvent.MOUSE_OVER, Over);
...
private function Over(event:MouseEvent):void
{
addChild(overImage);
}
private function Out(event:MouseEvent):void
{
removeChild(overImage);
}
当鼠标悬停在此按钮上时,overImage 会闪烁。看起来Over
和Out
正在调用每一帧。我究竟做错了什么?