主题:  请看:改动里面的中文字,生成SWF时不显示中文,

zxwgc

职务:普通成员
等级:1
金币:1.0
发贴:184
注册:2001/11/29 21:45:13
#12003/8/12 23:51:42
var drag=0.1;
var flex=0.7;
var menuEN=new Array("Home","News","Person","Enjoy","Teaching","guestbook","BBS");
var menuZH=new Array("网站首页","本站新闻","美术人物","美术全集","美术教育","雁过留声","美术论坛");
var menuURL=new Array("http://www.tzluyuan.com","http://www.tzluyuan.com/type.asp?typeID=11","http://www.tzluyuan.com/type.asp?typeID=13","http://www.tzluyuan.com/type.asp?typeID=5","http://www.tzluyuan.com/type.asp?typeID=10","http://www.tzluyuan.com/guestbook.asp","http://www.tzluyuan.com/bbs/");
var menuColor=new Array(0xffcf49,0xc2e6e6,0x96D302,0xc4daef,0xe8dabd,0xcedb19,0xa3c2df);
var mBlock=this.attachMovie("mblock","mb",0);
    mBlock._y=5;
    mBlock.goalX=-100;
    mBlock.onEnterFrame=function(){
            this.Step = this.Step * flex + (this.goalX - this.px) * drag;
            this.px+=this.Step;
            this._x=this.px;
            if(this.sOut && this._xscale<99.5) this._xscale+=(100-this._xscale)/8;
            if(this.sIn && this._xscale>0.1) this._xscale+=-this._xscale/8;
    }
var MBColor=new Color(mBlock);
for(var i=0;ivar theItem=this.attachMovie("MenuItem","Item"+i,i+10);
    theItem._x=i*84;
    theItem.mColor=menuColor[i];    
    theItem.URL=menuURL[i];
    theItem.mc_ZH.itext.text=menuZH[i];
    theItem.mc_EN.itext.text=menuEN[i];
    theItem.onEnterFrame=function(){
        if(this.fadeOut){
            if(this.topLine._alpha<99.5) this.topLine._alpha+=(100-this.topLine._alpha)/8;
            if(this.mc_EN._alpha>0.5) this.mc_EN._alpha+=-this.mc_EN._alpha/8;
            if(this.mc_ZH._xscale<130) {this.mc_ZH._xscale+=2;this.mc_ZH._yscale+=2;}
        }
            
        if(this.fadeIn){
            if(this.mc_EN._alpha<99.5) this.mc_EN._alpha+=(100-this.mc_EN._alpha)/8;
            if(this.topLine._alpha>0.5) this.topLine._alpha+=-this.topLine._alpha/8;
            if(this.mc_ZH._xscale>100) {this.mc_ZH._xscale-=2;this.mc_ZH._yscale-=2;}
        }
    }
    theItem.onRollOver=function(){
        mBlock.goalX=this._x+42;
        mBlock.sOut=true;
        mBlock.sIn=false;
        MBColor.setRGB(this.mColor);
        new Color(this.topLine).setRGB(this.mColor);
        //new Color(this.mc_ZH).setRGB(0xFFFFFF);
        this.fadeOut=true;
        this.fadeIn=false;
    }
    theItem.onRollOut=function(){
        mBlock.sOut=false;
        mBlock.sIn=true;
        //new Color(this.mc_ZH).setRGB(0x000000);
        this.fadeIn=true;
        this.fadeOut=false;        
    }    
    theItem.onRelease=function(){
        getURL(this.URL);
    }
}

stop();