哪位高手能告诉我这个Flash脚本动作是什么啊~!

我在看一个Flash导航原代码是看到的代码我是菜鸟看不懂哪为高手能帮帮我啊~!myURL=newArray();myURL[1]="#";myURL[2]="#";myU... 我在看一个Flash导航原代码是看到的代码我是菜鸟看不懂哪为高手能帮帮我啊~!

myURL = new Array();
myURL[1] = "#";
myURL[2] = "#";
myURL[3] = "#";
myURL[4] = "#";
myURL[5] = "#";

for (i=1; i<=5; i++) {
sub[i].onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub[i].onRollOut = sub[i].onDragOut=function () {
_global.over = active;
};
sub[i].onRelease = function() {
getURL(myURL[this._name], "_self");
};
}
sub.hit.useHandCursor = false;
sub.hit.onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub.hit.onRollOut = function() {
_global.over = active;
};

还有一个

_global.active = PageNum;
_global.over = active;
myURL = new Array();
myURL[1] = "#";
myURL[2] = "#";
myURL[3] = "#";
myURL[4] = "#";
myURL[5] = "#";

numOfMenu = 5;

for (i=1; i<=numOfMenu; i++) {
this[i].mainText.gotoAndStop(i);
this[i].bg.onRollOver = function() {
_global.over = this._parent._name;
};
this[i].bg.onRollOut = this[i].bg.onDragOut=function () {
_global.over = active;
};
this[i].bg.onRelease = function() {
getURL(myURL[this._parent._name], "_self");

};
this[i].onEnterFrame = function() {
if (over == this._name) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}

谢谢各位了
展开
 我来答
秋色烽火
2007-06-04 · TA获得超过1.2万个赞
知道大有可为答主
回答量:1.5万
采纳率:37%
帮助的人:1.2亿
展开全部
myURL = new Array(); //新建一个数组myURL
myURL[1] = "#"; //为数据的第2至第6个位置赋值 #号 这个数组应该是定义各导航按钮的链接地址的
myURL[2] = "#";
myURL[3] = "#";
myURL[4] = "#";
myURL[5] = "#";

for (i=1; i<=5; i++) { //for循环5次
sub[i].onRollOver = function() { //分别定义sub1 sub2 sub3 sub4 sub5影片剪辑元件的鼠标移过时的触发事件
_global.over = this._parent._parent._name; //将父级再父级的实例名赋值给全局变量over
};
sub[i].onRollOut = sub[i].onDragOut=function () { //定义鼠标移出影片剪辑范围外时的触发事件
_global.over = active;
};
sub[i].onRelease = function() { //定义按下鼠标并释放时的触发事件
getURL(myURL[this._name], "_self");
};
}
sub.hit.useHandCursor = false; //设置鼠标移动到链接上时不显示手型指针
sub.hit.onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub.hit.onRollOut = function() {
_global.over = active;
};

还有一个

_global.active = PageNum; //_global.全局变量名 定义全局变量
_global.over = active;
myURL = new Array(); //建立数组myURL
myURL[1] = "#";
myURL[2] = "#";
myURL[3] = "#";
myURL[4] = "#";
myURL[5] = "#";

numOfMenu = 5; //定义常量

for (i=1; i<=numOfMenu; i++) {
this[i].mainText.gotoAndStop(i);
this[i].bg.onRollOver = function() {
_global.over = this._parent._name;
};
this[i].bg.onRollOut = this[i].bg.onDragOut=function () {
_global.over = active;
};
this[i].bg.onRelease = function() {
getURL(myURL[this._parent._name], "_self");

};
this[i].onEnterFrame = function() {
if (over == this._name) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}

谢谢各位了
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式