crewman747
July 27th, 2003, 08:40 PM
I have a square that is a button symbol. There is a cirlce that is a movie clip symbol. I assigned the following actions to the button
on (keyPress "Left") {
currentX = this._x;
this._x = currentX - 2;
}
on (keyPress "Right") {
currentX = this._x;
this._x = currentX + 2;
}
on (keyPress "Up") {
currentY = this._y;
this._y = currentY - 2;
}
on (keyPress "Down") {
currentY = this._y;
this._y = currentY + 2;
}
For some reason, the square and the circle both move. Does anyone know why this happens. If so, how can i just make the block move and not the circle.
note: the <> symbols are not put surroundin the key names
on (keyPress "Left") {
currentX = this._x;
this._x = currentX - 2;
}
on (keyPress "Right") {
currentX = this._x;
this._x = currentX + 2;
}
on (keyPress "Up") {
currentY = this._y;
this._y = currentY - 2;
}
on (keyPress "Down") {
currentY = this._y;
this._y = currentY + 2;
}
For some reason, the square and the circle both move. Does anyone know why this happens. If so, how can i just make the block move and not the circle.
note: the <> symbols are not put surroundin the key names