周南实验中学':请FLASH高手进入实在不明白了!

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/20 02:25:45
这段代码是控制图片放大的代码!帮我解释一下,这段代码是如何控制图片大小的,谢谢了!
on (press)
{
_root.isZooming = true;
_root.picZoomRatio = 1.100000;
}
on (release)
{
_root.isZooming = false;
}
on (releaseOutside)
{
_root.isZooming = false;
}
on (rollOver)
{
_root.curToolTip = "放大";
}
与这段代码有什么必要的联系吗!
onClipEvent (data)
{
_root.picShow();
}
on (press)
{
_root.pic.startDrag(false);
}
on (release)
{
_root.pic.stopDrag();
if (Number(getTimer() - _root.lastClickTime) < 250)
{
getURL("javascript:cls();");
}
else
{
_root.lastClickTime = getTimer();
} // end if
}
on (keyPress "=")
{
_root.picZoom(1.100000);
}
on (keyPress "-")
{
_root.picZoom(0.909091);
}
on (keyPress "<Home>")
{
_root.picRefresh();
}
on (keyPress "<End>")
{
_root.picActualSize();
}
on (keyPress "<Left>")
{
_root.pic._x = _root.pic._x - 10;
_root.picMoveInStage();
}
on (keyPress "<Right>")
{
_root.pic._x = _root.pic._x + 10;
_root.picMoveInStage();
}
on (keyPress "<Up>")
{
_root.pic._y = _root.pic._y - 10;
_root.picMoveInStage();
}
on (keyPress "<Down>")
{
_root.pic._y = _root.pic._y + 10;
_root.picMoveInStage();
}

快到期了,还是没有回答者。想独孤求败吗?还悬赏了/白搭了30分。