影片中的某个脚本导致adobe flash player 10 速度降低
因为做的网站上要加个flash,我下载了一个,用硕思转了下swf,然后用flash8编辑修改,保存,发布,将原来的swf文件改名,把新发布的swf改成原来就有的那个swf...
因为做的网站上要加个flash,我下载了一个,用硕思转了下swf,然后用flash8编辑修改,保存,发布,将原来的swf文件改名,把新发布的swf改成原来就有的那个swf文件的名字,刷新下页面,结果报错:“影片中的某个脚本导致Adobe flash player 10速度降低如果继续运行电脑将有一段时间没有响应是否要终止此脚本”,
点击“是”,大概几秒后,页面跳出,但是无内容呈现。
如果打开硕思生成的flash源文件,不做任何修改,直接发布swf文件,修改名称后,页面还是同样报错。导出flash版本调低了也没有用。
百度上有人说代码出现死循环,但我没有看出有什么问题,请哪位高手帮看一下!!代码如下:
this.createEmptyMovieClip("bg", 1);
this.attachMovie("obg", "obg", 5);
bg._x = _root.btnW;
i = 0;
while (i<=_root.img_ea) {
bg.attachMovie("imgMC", "img"+i, i);
bg["img"+i].num = i;
bg["img"+i].filename = _root.shop[i].firstChild.nextSibling.firstChild.nodeValue;
bg["img"+i].link = _root.shop[i].firstChild.firstChild.nodeValue;
bg["img"+i].name = _root.shop[i].firstChild.nextSibling.nextSibling.firstChild.nodeValue;
bg["img"+i].img.loadMovie(bg["img"+i].filename);
bg["img"+i].textMc.form.char = bg["img"+i].name;
bg["img"+i]._x = (_root.btnW+2)*i;
bg["img"+i].btn._width = _root.img_w;
bg["img"+i].btn._height = _root.img_h;
bg["img"+i].btnLine._width = (bg["img"+i].textMC.btn._width=_root.btnW);
bg["img"+i].btnLine._height = (bg["img"+i].textMC.btn._height=_root.img_h);
bg["img"+i].mask._width = _root.img_w;
bg["img"+i].mask._height = _root.img_h;
bg["img"+i].textMC.btn.onRollOver = function() {
_root.mode = 1;
_root.img_num = this._parent._parent.num;
};
bg["img"+i].textMC.btn.onRollOut = function() {
_root.mode = 0;
};
bg["img"+i].textMC.btn.onRelease = function() {
getURL(this._parent._parent.link);
};
bg["img"+i].btn.onRollOver = function() {
_root.mode = 1;
};
bg["img"+i].btn.onRollOut = function() {
_root.mode = 0;
};
bg["img"+i].btn.onRelease = function() {
getURL(this._parent.link);
};
bg["img"+i].outX = (_root.btnW+2)*bg["img"+i].num;
bg["img"+i].overX = bg["img"+i].outX+_root.img_w;
bg["img"+i].onEnterFrame = function() {
var _local1 = this;
var _local2 = _root;
if (_local2.img_num>=_local1.num) {
_local1._x = _local1._x-((_local1._x-_local1.outX)*_local2.speed);
} else {
_local1._x = _local1._x-((_local1._x-_local1.overX)*_local2.speed);
}
if (_local2.img_num == _local1.num) {
_local1.btnLine.nextFrame();
_local1.mask.nextFrame();
_local1.textMC.nextFrame();
} else {
_local1.btnLine.gotoAndPlay(_local1.btnLine._currentframe-2);
_local1.mask.gotoAndPlay(_local1.mask._currentframe-2);
_local1.textMC.gotoAndPlay(_local1.textMC._currentframe-2);
}
};
i++;
}
obg._x = bg._width+1;
obg._height = _root.img_h+5;
obg._width = _root.img_w;
stop(); 展开
点击“是”,大概几秒后,页面跳出,但是无内容呈现。
如果打开硕思生成的flash源文件,不做任何修改,直接发布swf文件,修改名称后,页面还是同样报错。导出flash版本调低了也没有用。
百度上有人说代码出现死循环,但我没有看出有什么问题,请哪位高手帮看一下!!代码如下:
this.createEmptyMovieClip("bg", 1);
this.attachMovie("obg", "obg", 5);
bg._x = _root.btnW;
i = 0;
while (i<=_root.img_ea) {
bg.attachMovie("imgMC", "img"+i, i);
bg["img"+i].num = i;
bg["img"+i].filename = _root.shop[i].firstChild.nextSibling.firstChild.nodeValue;
bg["img"+i].link = _root.shop[i].firstChild.firstChild.nodeValue;
bg["img"+i].name = _root.shop[i].firstChild.nextSibling.nextSibling.firstChild.nodeValue;
bg["img"+i].img.loadMovie(bg["img"+i].filename);
bg["img"+i].textMc.form.char = bg["img"+i].name;
bg["img"+i]._x = (_root.btnW+2)*i;
bg["img"+i].btn._width = _root.img_w;
bg["img"+i].btn._height = _root.img_h;
bg["img"+i].btnLine._width = (bg["img"+i].textMC.btn._width=_root.btnW);
bg["img"+i].btnLine._height = (bg["img"+i].textMC.btn._height=_root.img_h);
bg["img"+i].mask._width = _root.img_w;
bg["img"+i].mask._height = _root.img_h;
bg["img"+i].textMC.btn.onRollOver = function() {
_root.mode = 1;
_root.img_num = this._parent._parent.num;
};
bg["img"+i].textMC.btn.onRollOut = function() {
_root.mode = 0;
};
bg["img"+i].textMC.btn.onRelease = function() {
getURL(this._parent._parent.link);
};
bg["img"+i].btn.onRollOver = function() {
_root.mode = 1;
};
bg["img"+i].btn.onRollOut = function() {
_root.mode = 0;
};
bg["img"+i].btn.onRelease = function() {
getURL(this._parent.link);
};
bg["img"+i].outX = (_root.btnW+2)*bg["img"+i].num;
bg["img"+i].overX = bg["img"+i].outX+_root.img_w;
bg["img"+i].onEnterFrame = function() {
var _local1 = this;
var _local2 = _root;
if (_local2.img_num>=_local1.num) {
_local1._x = _local1._x-((_local1._x-_local1.outX)*_local2.speed);
} else {
_local1._x = _local1._x-((_local1._x-_local1.overX)*_local2.speed);
}
if (_local2.img_num == _local1.num) {
_local1.btnLine.nextFrame();
_local1.mask.nextFrame();
_local1.textMC.nextFrame();
} else {
_local1.btnLine.gotoAndPlay(_local1.btnLine._currentframe-2);
_local1.mask.gotoAndPlay(_local1.mask._currentframe-2);
_local1.textMC.gotoAndPlay(_local1.textMC._currentframe-2);
}
};
i++;
}
obg._x = bg._width+1;
obg._height = _root.img_h+5;
obg._width = _root.img_w;
stop(); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询