急!帮忙解释这段代码的意思,详细些,小女子先谢谢各位了

来源:百度知道 编辑:UC知道 时间:2024/09/25 18:57:42
myURL = ["jianjie.asp", "Cnews.asp", "Product_01.asp?BigClassName=丽湖馨居", "magazine.asp", "service.asp", "BBS/index.asp", "HrDemand.asp", "Contact.asp"];
numOfMenu = 8;
_global.active = pageNum;
_global.over = active;
for (i = 1; i <= numOfMenu; i++)
{
this[i].rect1.mainText.gotoAndStop(i);
this[i].onRollOver = function ()
{
_global.over = this._name;
};
this[i].onRollOut = this[i].onDragOut = function ()
{
_global.over = active;
};
this[i].onRelease = function ()
{
getURL(myURL[this._name - 1], "_blank");
};
this[i].onEnterFrame = function ()
{
var _l1 = this;
if (over == _l1._name)
{
_l1.nextFrame();
}
else
{
_l1.p

你这个是反编译的swf吧? 里面变量丢了一些.

myURL = ["jianjie.asp", "Cnews.asp", "Product_01.asp?BigClassName=丽湖馨居", "magazine.asp", "service.asp", "BBS/index.asp", "HrDemand.asp", "Contact.asp"]; //把网址存在数组里面
numOfMenu = 8;
_global.active = pageNum;
_global.over = active;
for (i = 1; i <= numOfMenu; i++)
{
this[i].rect1.mainText.gotoAndStop(i); //mainText这个MC停到i帧
this[i].onRollOver = function () //当鼠标滑到本movieclip里面的第i个MC上时执行
{
_global.over = this._name;
};
this[i].onRollOut = this[i].onDragOut = function () //滑开时执行
{
_global.over = active;
};
this[i].onRelease = function () //松开时执行打开网址数组里面的网页
{
getURL(myURL[this._name - 1], "_blank");
};
this[i].onEnterFrame = function () //不停执行这个函数
{
var _l1 = this;
if (over == _l1._name) //如果停在了本MC
{
_l1.nextFrame(); //跳到下一帧