请问这段flash的as什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/08 04:09:39
function get_menu_array(in_xml) {
var _local2 = new XML ();
_local2 = in_xml.firstChild;
while (_local2 != null) {
var _local1 = _local2.attributes;
menu_array.push({name:_local1.name, href:_local1.href, target:_local1.target});
_local2 = _local2.nextSibling;
}
delete menu_xml;
}
function item_onRelease() {
var _local2 = Number (this._parent._name.split("_")[2]);
flash.external.ExternalInterface.call("custom_menu_swf", menu_array[_local2].href);
this._parent.gotoAndStop(1);
}
function item_onPress() {
this._parent.gotoAndStop(3);
}
function item_onRollOver() {
this._parent.gotoAndStop(2);
}
function item_onRollOut() {
this._parent.gotoAndStop(1);
}
System.useCodepage = true;
Sta

看样子这大概是一个导航用的flash。这个flash大概是一个网站的导航栏目连接。其中导航数据来源于一个xml文件(这个文件有可能是纯文本的,也有可能是程序生成的。)在这个flash中新建了xml对象。加载了xml导航数据到flash中。每一个xml数据生成了一个按钮,并且按相应的按钮会跳转到相应的帧上(this._parent.gotoAndStop(3); )。同时好像这些导航连接还有下拉型的二级连接。移到上面会显示相应的影片(attachMovie("menu_item", "menu_item_" + _local2, 5555 + _local2); )

好像是在重新命名