当前位置:软件学习 > Flash >>

flash as 2.0调用外部movie 实现代码

这是一个简单的代码哦,是用flash as 2.0调用外部movie 实现代码哦,并且有一种缓冲效果,下面看看代码吧。

line.onEnterFrame = function ()
{
    if (this._currentframe != this._totalframes)
    {
        this.nextFrame();
    }
    else
    {
        container.loadMovie("team.swf");
        this.btn1.onRelease = function ()
        {
            container.loadMovie("team.swf");
        };
        this.btn1.onRollOver = function ()
        {
            this.gotoAndPlay(2);
        };
        this.btn1.onRollOut = function ()
        {
            this.gotoAndPlay(1);
        };
        this.btn2.onRelease = function ()
        {
            container.loadMovie("yuyuekongjian.swf");
        };
        this.btn2.onRollOver = function ()
        {
            this.gotoAndPlay(2);
        };
        this.btn2.onRollOut = function ()
        {
            this.gotoAndPlay(1);
        };
        btn_close.onRelease = function ()
        {
            container.removeMovieClip();
        };
        delete this.onEnterFrame;
    } // end else if
};

补充:flash教程,Action
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,