如上题,我都无语了!不知怎么解决!http://hfx.jypc.org就是以上网页中的头部flash导航!以下是主场景代码:
Button.prototype.elasticScale = function(targetScale) {
this.scale = 0.7*this.scale+(targetScale-this._xscale)*0.2;
this._xscale += this.scale;
this._yscale = this._xscale;
};
myURL = ["http://hfx.jypc.org/benxigaimao/", "http://hfx.jypc.org/zhuanyejianshe/", "http://hfx.jypc.org/dangtuanjianshe/", "http://hfx.jypc.org/xueshengtiandi/", "http://hfx.jypc.org/jiuyezhidao/"];
numOfMenu = 5;
_global.active = pageNum;
_global.over = active;
for (i=1; i<=numOfMenu; i++) {
this[i].mainText.gotoAndStop(i);
this[i].bg.onRollOver = function() {
_global.over = this._parent._name;
};
this[i].bg.onRelease = function() {
getURL(myURL[this._parent._name-1], "_parent");
};
this[i].onEnterFrame = function() {
if (over == this._name) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
bar.onEnterFrame = function() {
if (over == undefined) {
this._x += (-100-this._x)/10;
} else {
this._x += (this._parent[over]._x-this._x)/10;
}
};以下是每个下拉导航条的代码:sub.gotoAndStop(this._name);
myURL = [["http://hfx.jypc.org/", "http://hfx.jypc.org/benxigaimao/xibujianjie/", "http://hfx.jypc.org/benxigaimao/zhuanyeshezhi/", "http://hfx.jypc.org/benxigaimao/zuzhijiegou/","http://hfx.jypc.org/benxigaimao/huafangdongtai/"],
["http://hfx.jypc.org/zhuanyejianshe/zhuanyewangzhan/", "http://hfx.jypc.org/zhuanyejianshe/jingpinkecheng/", "http://hfx.jypc.org/zhuanyejianshe/xingyedongtai/"],
["http://hfx.jypc.org/dangtuanjianshe/dangjiandongtai/", "http://hfx.jypc.org/dangtuanjianshe/dangkezaixian/", "http://hfx.jypc.org/dangtuanjianshe/renwufengcai/"],
["http://hfx.jypc.org/xueshengtiandi/shetuandongtai/", "http://hfx.jypc.org/xueshengtiandi/xinlifudao/", "http://hfx.jypc.org/xueshengtiandi/guanlizhidu/"],
["http://hfx.jypc.org/jiuyezhidao/xiangguanzhengce/", "http://hfx.jypc.org/jiuyezhidao/zhaopinxinxi/", "http://hfx.jypc.org/jiuyezhidao/zhichangdaohang/"]];for (i=1; i<=myURL[this._name-1].length; i++) {
sub[i].onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub[i].onRollOut = sub[i].onDragOut=function () {
_global.over = active;
};
sub[i].onRelease = function() {
getURL(myURL[this._parent._parent._name-1][this._name-1], "_parent");
// "_self" 
         };
sub[i]._xscale = sub[i]._yscale=0;
}tempCounter = 0;
sub.onEnterFrame = function() {
tempCounter++;
for (i=1; i<=myURL[this._parent._name-1].length; i++) {
if(i*3<tempCounter){
this[i].elasticScale(100);
}
}
};
subBg.useHandCursor = 0;
subBg.onRollOver = function() {
_global.over = this._parent._name;
};
subBg.onRollOut = subBg.onDragOut=function () {
_global.over = active;
};注意:以上链接都必须使用http链接,不能用相对路径

解决方案 »

  1.   

    我今天遇到这个问题,其实昨天已经有了,没发现,测试的时候,怎么弄都无效,过了2、3个小时,自己好了,在其它电脑上浏览还是不行,单独访问这个flash链接是可以跳转的,放到页面里不行,本地测试好的,上传到服务器就不行,代码都一样,不一样的是页面代码里调用flash的地址,http://localhost/xx.swf和http://www.XXX.com/xx.swf的区别。
    问题在 param name="movie" value="..."
    embed src="..."
    都用了绝对位置,位置是对的,但是不能点击链接
    换成“/”等相对位置就可以了。