flash左右滚动问题

来源:百度知道 编辑:UC知道 时间:2024/06/16 23:19:48
这段代码是向右滚动的,我想改动向左滚动,如何设置

function slideMoving() {
if (slidingleft == true) {
if (this.eMc._x <= startPos) {
this.slideMc._x = startPos;
}
if (rightBtnOver == true) {
this.slideMc._x = this.slideMc._x - btnSpeed;
} else if (logoBtnOver == true) {
this.slideMc._x = this.slideMc._x - overSpeed;
} else {
this.slideMc._x = this.slideMc._x - slideSpeed;
}
} else {
if (this.slideMc._x >= startPos) {
this.slideMc._x = startPos - this.slideMc._width;
}
if (leftBtnOver == true) {
this.slideMc._x = this.slideMc._x + btnSpeed;
} else if (logoBtnOver == true) {
this.slideMc._x = this.slideMc._x + overSpeed;
} else {

我不得不说你了,没我这么好的人这么认真给你挑错了!

function slideMoving() {
if (slidingleft == true) {

这里你把L写成小写的了,当然会无法实现另一个按钮的经过事件。

slidingLeft
靠!本来想挑战下自己找出竟然无法修改的原因,原来是这个小问题!!!
你要不加分太对不起我了! ^_^