请帮分析下这段Flash代码

来源:百度知道 编辑:UC知道 时间:2024/05/23 17:34:46
static function initialize(target)
{
var _loc2 = MovieClip.prototype;
if (target instanceof MovieClip)
{
_loc2 = target;
} // end if
if (_loc2.moveOut != null)
{
return (false);
} // end if
var _loc3 = _global.com.idescn.utils.MCmoveInOut.prototype;
_loc2.moveIn = _loc3.moveIn;
_loc2.moveOut = _loc3.moveOut;
_global.ASSetPropFlags(_loc2, ["moveIn", "moveOut"], 5);
return (true);
} // End of the function
function moveIn(frame, func)
{
if (frame > _totalframes || frame == undefined)
{
frame = _totalframes;
} // end if
if (frame < _currentframe)
{
func(this);
}
else
{
function onEnterFrame()

function 是自定义函数 后面跟着的是参数 moveout看字面意思就是鼠标的移入,移出 _currentframe 当前帧_totalframes 总帧数(MC的) 授人以鱼不如授人以渔 我想 这个不是太难的吧 ||是或的意思 其中一个符合条件就执行下面的语句