请教关于编程问题?

代码:Stage.scaleMode = "noScale";
zurl = new Array();
zurl[1] = "#";
zurl[2] = "#";
zurl[3] = "#";//["","submenu1.html","submenu2.html","submenu3.html","submenu4.html","submenu5.html","submenu6.html"]
submenu = new Array();
submenu[1] = ["", "hourse1.asp", "hourse2.asp", "hourse3.asp", "hourse4.asp"];
submenu[2] = ["", "pr1.asp", "pr2.asp", "pr3.asp", "pr4.asp"];
submenu[3] = ["", "/bbs.asp", "/feedback.asp"];
for (i=1; i<=3; i++) {
_root["m"+i].snum = i;
_root["m"+i].onRollOver = function() {
_root.xnum = this.snum;
};
_root["m"+i].onRollOut = function() {
_root.xnum = 0;
};
_root["m"+i].onRelease = function() {
getURL(_root.zurl[this.snum]);
};
_root["m"+i].onEnterFrame = function() {
if (_root.xnum == this.snum) {
this.nextFrame();
} else {
this.prevFrame();
}
};
_root["sm"+i].snum = i;
_root["sm"+i]._y = 20;
_root["sm"+i].sbar.onRollOver = function() {
_root.xnum = this._parent.snum;
};
_root["sm"+i].sbar.onRollOut = function() {
_root.xnum = 20;
};
_root["sm"+i].onEnterFrame = function() {
if (_root.xnum == this.snum) {
this._y = this._y-(this._y-80)*0.1;
} else {
this._y = this._y-(this._y+20)*0.1;
}
};
for (j=1; j<=4; j++) {
_root["sm"+i]["sb"+j].tnum = j;
_root["sm"+i]["sb"+j].onRollOver = function() {
_root.xnum = this._parent.snum;
};
_root["sm"+i]["sb"+j].onRollOut = function() {
_root.xnum = 20;
};
_root["sm"+i]["sb"+j].onRelease = function() {
getURL(_root.submenu[this._parent.snum][this.tnum]);
};
}
}
--------------------------------
**错误** 场景=Scene 1, 图层=menu, 帧=1:第 1 行: 语句必须出现在 on/onClipEvent 处理函数中
Stage.scaleMode = "noScale";

……
---------------------------
注意:不是按钮,是影片剪辑.还有就是本来就是在场景独立层上的第一祯上.输入了onClipEvent后也没用啊
08-11-22  导盲犬毛毛 发布
2个回答
时间
投票
精华知识
更多  
意见反馈 帮助