一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

flash右上角关闭效果as 代码

时间:2010-05-27 编辑:简简单单 来源:一聚教程网


//关闭

stop();
close_btn.onRelease = close_btn.onReleaseOutside = function ()
{
    _root.gotoAndPlay("close");
};
goto_btn.onRelease = goto_btn.onReleaseOutside=function () { getURL("http://www.111com.net", "_blank");};

//打开

stop();
open_btn.onRelease = open_btn.onReleaseOutside = function ()
{
    _root.gotoAndPlay("open");
};
goto_btn.onRelease = goto_btn.onReleaseOutside=function () { getURL("http://www.111com.net/"+_root.unionuser+"@union/", "_blank");};

//注明,我们要要时间轴上设置一个open,close两个点,这样就实例了flash右上角关闭效果哦。

热门栏目