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

热门教程

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

时间:2022-07-02 17:14:01 编辑:袖梨 来源:一聚教程网

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

热门栏目