帮我解读下下代码 flash的

来源:百度知道 编辑:UC知道 时间:2024/06/27 04:42:07
function getData()
{
var xmlObj = new XML();
var _l1 = "http://www.xunlei.com/fade.xml?cacheTime=" + new Date();
xmlObj.load(_l1);
xmlObj.ignoreWhite = true;
xmlObj.onLoad = function (success)
{
fixData(xmlObj);
};
} // End of the function

完整的代码如下

// Action script...

// [onClipEvent of sprite 1 in frame 1]
onClipEvent (load)
{
this._alpha = 0;
}

// [onClipEvent of sprite 2 in frame 1]
onClipEvent (load)
{
this._alpha = 0;
}

// [onClipEvent of sprite 3 in frame 1]
onClipEvent (load)
{
this._alpha = 0;
}

// [onClipEvent of sprite 4 in frame 1]
onClipEvent (load)
{
this._alpha = 0;
}

// [onClipEvent of sprite 5 in frame 1]
o

function getData()
{
var xmlObj = new XML();
var _l1 = "http://www.xunlei.com/fade.xml?cacheTime=" + new Date();
xmlObj.load(_l1);
xmlObj.ignoreWhite = true;
xmlObj.onLoad = function (success)
{
fixData(xmlObj);
};
} // End of the function

上面这段就是读取一个XML文件
http://www.xunlei.com/fade.xml可以直接下载,cacheTime是当时时间的变量;
以上XML读取成功后就运行fixData() 函数了