谁帮我解释下这些代码 使flash的帧代码急用

来源:百度知道 编辑:UC知道 时间:2024/06/07 06:46:28
第一帧:function linkClean(temp) {
temp = String(temp);
var i = 0;
while (i<temp.length) {
if (temp.substr(i, 4) == "amp;") {
temp = (temp.substr(0, i-1)+"&")+temp.substr(i+4);
}
i++;
}
var i = 0;
while (i<temp.length) {
if (temp.substr(i, 5) == "apos;") {
temp = (temp.substr(0, i-1)+"\'")+temp.substr(i+5);
}
i++;
}
return (temp);
}
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) {
if (temp == false) {
if (endURL.substr(0, 11) != "http://www.") {
var k = endURL.substr(7);
endURL = "

是个乱码

这么长的代码,就区区50分的百度分就想叫人解释...未免...

大概看了一下,应该是对XML的分析处理代码段,你才一级,根据经验,多数都会关闭问题的了....懒得说那么多。