speedlemon
07-01-2004, 03:28 AM
some of you may have seen my other thread about a week ago in regards to a banner that i was making... well. i got that question answered but i ran into more trouble when i was completely baffled by why this script wasn't working the way i wanted. :mad:
ok. here's the code one of you helped me with + the part thats not working.(this part highlighted with red)
onClipEvent (load) {
right = true;
this._x = 50;
}
onClipEvent (enterFrame) {
if (right == true) {
this._x += 15;
if (this._x>=375) {
right = false;
}
}
if (right == false) {
this._x -= 15;
if (this._x<=25) {
right = true;
}
}
}
on (press) {
gotoAndStop(2);
}
ok. so if anyone could tell me why its not taking me to frame 2, i would *GREATLY* appreciate it, and i mean that!!!
thanks in advance, :D
ok. here's the code one of you helped me with + the part thats not working.(this part highlighted with red)
onClipEvent (load) {
right = true;
this._x = 50;
}
onClipEvent (enterFrame) {
if (right == true) {
this._x += 15;
if (this._x>=375) {
right = false;
}
}
if (right == false) {
this._x -= 15;
if (this._x<=25) {
right = true;
}
}
}
on (press) {
gotoAndStop(2);
}
ok. so if anyone could tell me why its not taking me to frame 2, i would *GREATLY* appreciate it, and i mean that!!!
thanks in advance, :D