flash右上角关闭效果as 代码
flash右上角关闭效果as 代码
//关闭
stop();
close_btn.onRelease = close_btn.onReleaseOutside = function ()
{
_root.gotoAndPlay("close");
};
goto_btn.onRelease = goto_btn.onReleaseOutside=function () { getURL("http://www.zzzyk.com", "_blank");};
//打开
stop();
open_btn.onRelease = open_btn.onReleaseOutside = function ()
{
_root.gotoAndPlay("open");
};
goto_btn.onRelease = goto_btn.onReleaseOutside=function () { getURL("http://www.zzzyk.com/"+_root.unionuser+"@union/", "_blank");};
//注明,我们要要时间轴上设置一个open,close两个点,这样就实例了flash右上角关闭效果哦。
补充:flash教程,动画技术