ok i have run into yet another problem…
i want to drive a car using up, left and right. but at the same time using a different mc i want a little light to come on indicating the direction the car is going.
i have used the following code but it doesnt seem to work.
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this.gotoAndStop (2);
} else {
this.gotoAndStop (1)
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.UP)) {
this.gotoAndStop (3);
} else {
this.gotoAndStop (1)
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP)) {
this.gotoAndStop (4);
} else {
this.gotoAndStop (1)
}
}