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

flash loadMovie 实例教程

line.onEnterFrame = function ()
{
    if (this._currentframe != this._totalframes)
    {
        this.nextFrame();
    }
    else
    {
        container.loadMovie("zhuomianxiazai.swf");
        this.btn1.onRelease = function ()
        {
            container_2.loadMovie("team.swf");
   container.unloadMovie();
        };
        this.btn1.onRollOver = function ()
        {
            this.gotoAndPlay(2);
        };
        this.btn1.onRollOut = function ()
        {
            this.gotoAndPlay(1);
        };
        this.btn2.onRelease = function ()
        {
            container.loadMovie("yuyuekongjian.swf");
   container_2.unloadMovie();
        };
        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教程,动画技术 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,