阿榕软件站
http://www.arongsoft.com/[flash=760,35]http://www.arongsoft.com/img/logo.swf[/flash]
复制内容到剪贴板
代码:
<br>var drag=0.1;//震动参数<br>var flex=0.7;//震动参数<br>var menuEN=new Array("Home","Down","Down","Down","Article","Collweb","KTV");<br>var menuZH=new Array("阿榕首页","阿榕下载","阿榕下载","阿榕下载","网络学院","阿榕酷站","阿榕歌曲",);<br>var menuURL=new Array("#","#","#","#","#","#","#"); //地址不披露<br>var menuColor=new Array(0xD808B8,0x00A2FF,0x96D302,0xFFC600,0xFF5400,0x7908D8,0x02D396);<br>var mBlock=this.attachMovie("mblock","mb",0);<br>mBlock._y=5;<br>mBlock.goalX=-100;<br>mBlock.onEnterFrame=function(){<br>this.Step = this.Step * flex + (this.goalX - this.px) * drag;<br>this.px+=this.Step;<br>this._x=this.px;<br>if(this.sOut && this._xscale<99.5) this._xscale+=(100-this._xscale)/8;<br>if(this.sIn && this._xscale>0.1) this._xscale+=-this._xscale/8;<br>}<br>var MBColor=new Color(mBlock);<br>for(var i=0;i<menuZH.length;i++){<br>var theItem=this.attachMovie("MenuItem","Item"+i,i+10);<br>theItem._x=i*84;<br>theItem.mColor=menuColor[i];<br>theItem.URL=menuURL[i];<br>theItem.mc_ZH.itext.text=menuZH[i];<br>theItem.mc_EN.itext.text=menuEN[i];<br>theItem.onEnterFrame=function(){<br>if(this.fadeOut){<br>if(this.topLine._alpha<99.5) this.topLine._alpha+=(100-this.topLine._alpha)/8;<br>if(this.mc_EN._alpha>0.5) this.mc_EN._alpha+=-this.mc_EN._alpha/8;<br>if(this.mc_ZH._xscale<130) {this.mc_ZH._xscale+=2;this.mc_ZH._yscale+=2;}<br>}<br><br>if(this.fadeIn){<br>if(this.mc_EN._alpha<99.5) this.mc_EN._alpha+=(100-this.mc_EN._alpha)/8;<br>if(this.topLine._alpha>0.5) this.topLine._alpha+=-this.topLine._alpha/8;<br>if(this.mc_ZH._xscale>100) {this.mc_ZH._xscale-=2;this.mc_ZH._yscale-=2;}<br>}<br>}<br>theItem.onRollOver=function(){<br>mBlock.goalX=this._x+42;<br>mBlock.sOut=true;<br>mBlock.sIn=false;<br>MBColor.setRGB(this.mColor);<br>new Color(this.topLine).setRGB(this.mColor);<br>//new Color(this.mc_ZH).setRGB(0xFFFFFF);<br>this.fadeOut=true;<br>this.fadeIn=false;<br>}<br>theItem.onRollOut=function(){<br>mBlock.sOut=false;<br>mBlock.sIn=true;<br>//new Color(this.mc_ZH).setRGB(0x000000);<br>this.fadeIn=true;<br>this.fadeOut=false;<br>}<br>theItem.onRelease=function(){<br>getURL(this.URL);<br>}<br>}<br><br>stop();<br>