【发布时间】:2015-01-21 17:00:30
【问题描述】:
我想知道当鼠标悬停在使用 AS3.0 的对象时,是否有一种方法可以减轻缩放效果。我知道你可以使用影片剪辑来做到这一点,但我只想使用 AS3.0 来使我的文件尽可能紧凑!
我现在使用的代码很简单。
import flash.events.MouseEvent;
my_mc.addEventListener(MouseEvent.MOUSE_OVER, mouse_over);
my_mc.addEventListener(MouseEvent.MOUSE_OUT, mouse_out);
function mouse_over(evt:MouseEvent){
my_mc.width = 200;
my_mc.height = 200;
}
function mouse_out(evt:MouseEvent){
my_mc.width = 90;
my_mc.height = 90;
}
【问题讨论】:
标签: actionscript-3 flash actionscript