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

作者:袖梨 2022-07-02

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
};

相关文章

精彩推荐