系统提示-影片中的某个脚本导致adobe flash player 10 速度降低,请高手帮我看一下那有死循环 20
第一帧代码:stop();System.useCodepage=true;Stage.scaleMode="noScale";link=newArray();frameN...
第一帧代码:
stop();
System.useCodepage = true;
Stage.scaleMode = "noScale";
link = new Array ();
frameName = new Array ();
imageURL = new Array ();
myXML = new XML ();
myXML.ignoreWhite = true;
myXML.onLoad = function (temp) {
var _local1 = this;
gap = Number (String (_local1.childNodes[0].childNodes[0])) * 1000;
numOfImage = Number (String (_local1.childNodes[1].childNodes[0]));
type = String (_local1.childNodes[2].childNodes[0]);
step = Number (String (_local1.childNodes[3].childNodes[0]));
i = 1;
while (i <= numOfImage) {
imageURL[i] = _local1.childNodes[4].childNodes[i - 1].childNodes[0];
link[i] = _local1.childNodes[5].childNodes[i - 1].childNodes[0];
frameName[i] = _local1.childNodes[6].childNodes[i - 1].childNodes[0];
i++;
}
gotoAndStop (2);
};
MovieClip.prototype.elastic1 = function (targetY) {
var _local1 = this;
if (type == "1") {
_local1._y = _local1._y + ((targetY - _local1._y) / 5);
} else if (type == "2") {
_local1.y = (_local1.y * 0.7) + ((targetY - _local1._y) * 0.1);
_local1._y = _local1._y + _local1.y;
}
};
MovieClip.prototype.elastic2 = function (targetY) {
var _local1 = this;
if (type == "1") {
_local1._y = _local1._y + ((targetY - _local1._y) / 6);
} else if (type == "2") {
_local1.y = (_local1.y * 0.7) + ((targetY - _local1._y) * 0.1);
_local1._y = _local1._y + _local1.y;
}
};
有字数要求,妈的 展开
stop();
System.useCodepage = true;
Stage.scaleMode = "noScale";
link = new Array ();
frameName = new Array ();
imageURL = new Array ();
myXML = new XML ();
myXML.ignoreWhite = true;
myXML.onLoad = function (temp) {
var _local1 = this;
gap = Number (String (_local1.childNodes[0].childNodes[0])) * 1000;
numOfImage = Number (String (_local1.childNodes[1].childNodes[0]));
type = String (_local1.childNodes[2].childNodes[0]);
step = Number (String (_local1.childNodes[3].childNodes[0]));
i = 1;
while (i <= numOfImage) {
imageURL[i] = _local1.childNodes[4].childNodes[i - 1].childNodes[0];
link[i] = _local1.childNodes[5].childNodes[i - 1].childNodes[0];
frameName[i] = _local1.childNodes[6].childNodes[i - 1].childNodes[0];
i++;
}
gotoAndStop (2);
};
MovieClip.prototype.elastic1 = function (targetY) {
var _local1 = this;
if (type == "1") {
_local1._y = _local1._y + ((targetY - _local1._y) / 5);
} else if (type == "2") {
_local1.y = (_local1.y * 0.7) + ((targetY - _local1._y) * 0.1);
_local1._y = _local1._y + _local1.y;
}
};
MovieClip.prototype.elastic2 = function (targetY) {
var _local1 = this;
if (type == "1") {
_local1._y = _local1._y + ((targetY - _local1._y) / 6);
} else if (type == "2") {
_local1.y = (_local1.y * 0.7) + ((targetY - _local1._y) * 0.1);
_local1._y = _local1._y + _local1.y;
}
};
有字数要求,妈的 展开
2个回答
展开全部
while (i <= numOfImage) {
imageURL[i] = _local1.childNodes[4].childNodes[i - 1].childNodes[0];
link[i] = _local1.childNodes[5].childNodes[i - 1].childNodes[0];
frameName[i] = _local1.childNodes[6].childNodes[i - 1].childNodes[0];
i++;
}
imageURL[i] = _local1.childNodes[4].childNodes[i - 1].childNodes[0];
link[i] = _local1.childNodes[5].childNodes[i - 1].childNodes[0];
frameName[i] = _local1.childNodes[6].childNodes[i - 1].childNodes[0];
i++;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
while (i <= numOfImage) {
imageURL[i] = _local1.childNodes[4].childNodes[i - 1].childNodes[0];
link[i] = _local1.childNodes[5].childNodes[i - 1].childNodes[0];
frameName[i] = _local1.childNodes[6].childNodes[i - 1].childNodes[0];
i++;)
imageURL[i] = _local1.childNodes[4].childNodes[i - 1].childNodes[0];
link[i] = _local1.childNodes[5].childNodes[i - 1].childNodes[0];
frameName[i] = _local1.childNodes[6].childNodes[i - 1].childNodes[0];
i++;)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询