如何学催眠术:flash脚本求助

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/04 23:49:46
FLASH导航代码
这只是四个字的
因为我有六个字,想请问要修改哪个代码才可以能正常显示,谢谢
var menuURL = new Array("index.asp", "news.asp", "dj.asp", "art.asp", "down.asp", "pic.asp", "link.asp");
var menuColor = new Array(0xFF6699, 0x00A2FF, 0x96D302, 0xFFC600, 0xFF5400, 0xCD7DE1, 0x02D396);
var mBlock = this.attachMovie("mblock", "mb", 5);
mBlock._y = 6;
mBlock.goalX = -100;
mBlock.onEnterFrame = function() {
this.Step = this.Step*flex+(this.goalX-this.px)*drag;
this.px += this.Step;
this._x = this.px;
if (this.sOut && this._xscale<99.5) {
this._xscale += (100-this._xscale)/8;
}
if (this.sIn && this._xscale>0.1) {
this._xscale += -this._xscale/8;
}
};
var MBColor = new Color(mBlock);
for (var i = 0; i<menuZH.length; i++) {
pipi.start([1, 1]);
var theItem = this.attachMovie("MenuItem", "Item"+i, i+8);
theItem._x = i*84;
theItem.mColor = menuColor[i];
theItem.URL = menuURL[i];
theItem.mc_ZH.itext.text = menuZH[i];
theItem.mc_EN.itext.text = menuEN[i];
theItem.onEnterFrame = function() {
if (this.fadeOut) {
if (this.topLine._alpha<99.5) {
this.topLine._alpha += (100-this.topLine._alpha)/8;
}
if (this.mc_EN._alpha>0.5) {
this.mc_EN._alpha += -this.mc_EN._alpha/0;
}
if (this.mc_ZH._xscale<00) {
this.mc_ZH._xscale += 2;
this.mc_ZH._yscale += 2;
}
}
if (this.fadeIn) {
if (this.mc_EN._alpha<99.5) {
this.mc_EN._alpha += (100-this.mc_EN._alpha)/8;
}
if (this.topLine._alpha>0.5) {
this.topLine._alpha += -this.topLine._alpha/8;
}
if (this.mc_ZH._xscale>100) {
this.mc_ZH._xscale -= 2;
this.mc_ZH._yscale -= 2;
}
}
};
theItem.onRollOver = function() {
mBlock.goalX = this._x+42;
mBlock.sOut = true;
mBlock.sIn = false;
MBColor.setRGB(this.mColor);
new Color(this.topLine).setRGB(this.mColor);
this.fadeOut = true;
this.fadeIn = false;
};
theItem.onRollOut = function() {
mBlock.sOut = false;
mBlock.sIn = true;
this.fadeIn = true;
this.fadeOut = false;
};
theItem.onRelease = function() {
getURL(this.URL);
};
}
stop();

for (var i = 0; i<menuZH.length; i++)
可能是这个for循环,是四个什么字呢

应该是:this.Step = this.Step*flex+(this.goalX-this.px)*drag;
中的:THIS