牛顿第二定律例题:〓〓〓〓〓〓请帮忙,关于flash菜单〓〓〓〓〓〓

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/03 07:58:28
下边是源码,请问,怎么做才能使点击理念,团队...等,之后是跳到另一个flash中,现在源文件打开的链接是以IE的形式打开的,我是想还用flash player播放,我把第二行改为var menu_loadMovies,也不管用...请问怎么改?急,谢谢!!!!!!!!!

var menu_Lables=new Array("","理念","团队","作品","服务","异术","联系方式","");
var menu_URLs = new Array("", "2-1.swf", "3-1.swf", "作品", "服务", "异术", "联系方式", "");
var menu_minScale=100;
var menu_maxScale=130;
var menu_StartX=500;
var menu_StartY=30;
var IconNumber=13;
var Icon_minScale=30;
var Icon_maxScale=60;
var Icon_Space=2;

var DockMenu=createEmptyMovieClip("dmenu",10);
DockMenu._x=menu_StartX;
DockMenu._y=menu_StartY;
for(var i=0;i<IconNumber;i++){
var theItem=DockMenu.attachMovie("icon"+i,"item"+i,i+10);
theItem.attachMovie("label","ilabel",10);
theItem.preItem=DockMenu["item"+(i-1)];
theItem._x=theItem.preItem._x+theItem.preItem._width+Icon_Space;
theItem.ilabel.label.text=menu_Lables[i];
theItem.ilabel._visible=false;
theItem.URL=menu_URLs[i];
theItem._xscale=Icon_minScale;
theItem._yscale=Icon_minScale;
theItem.onRollOver=function(){
this.ilabel._visible=true;
}
theItem.onRollOut=theItem.onReleaseOutside=function(){
this.ilabel._visible=false;
}
theItem.onRelease=function(){
getURL(this.URL);
}
theItem.onEnterFrame=function(){
if(this._parent.mover){
var scale=Icon_maxScale-Math.abs(DockMenu._xmouse-this._x-30)/5;
if (scale<Icon_minScale) scale=Icon_minScale;
this._xscale+=(scale-this._xscale)/3;
this._yscale+=(scale-this._yscale)/3;
}
if(this._parent.mout){
this._xscale+=(Icon_minScale-this._xscale)/3
this._yscale+=(Icon_minScale-this._yscale)/3
}
this._x+=(this.PreItem._x+this.PreItem._width+Icon_Space-this._x)/3;
}
}
var theBGBox=DockMenu.attachMovie("bgbar","bgbox",1);
theBGBox.onEnterFrame=function(){
this._x=DockMenu["item0"]._x;
this._width=DockMenu["item"+(IconNumber-2)]._x+DockMenu["item"+(IconNumber-2)]._width-DockMenu["itemCon"]._x;
}

DockMenu.onEnterFrame=function(){
if(this.mover){
this._xscale+=(menu_maxScale-this._xscale)/4;
this._yscale+=(menu_maxScale-this._yscale)/4;
}
if(this.mout){
this._xscale+=(menu_minScale-this._xscale)/4;
this._yscale+=(menu_minScale-this._yscale)/4;
}
this._x+=(-this._width/2+menu_StartX-this._x)/3;
}

DockMenu.onMouseMove=function(){
if(this.hitTest(_root._xmouse,_root._ymouse,false)){
this.mover=true;
this.mout=false;
}else{
this.mover=false;
this.mout=true;
}
}