flash actionscript3.0转换为相同功能的actionscript2.0版本
flash actionscript3.0的代码如下(需要转换为相同功能的actionscript2.0版本):
var currentObj:Object;
var c:ColorTransform;
function onOverHandle(evt:MouseEvent):void
{
currentObj = evt.currentTarget;
c = currentObj.transform.colorTransform;
c.redOffset += 200;
c.alphaOffset += 200;
currentObj.transform.colorTransform = c;
}
function onOutHandle(evt:MouseEvent):void
{
c.redOffset -= 200;
c.alphaOffset -= 200;
currentObj.transform.colorTransform = c;
}