Probably simple problem

hi i have

if (Key.isDown(Key.SPACE)) {
tellTarget ("/car") {gotoAndStop (2);}
}

and all i want is for it to go back to gotoAndStop (1) when space is released. I though it would be “Key.isUp” but obviously it isn’t then i tried some on space release things and got all confused. Is there a simple way to solve this?

if(Key.isDown(Key.SPACE)){
_root.car.gotoAndStop(2);
}else{
_root.car.gotoAndStop(1);
}

Telltarget wha?

Thank you so much! also lol i only just started trying to do some coding on my own and not robbing the codes and i keep doing things harder ways obviously… atleast now i’ve learnt another new thing. thanks again :beam:

Yeah sure anytime. If you get in more trouble just post question here on the board (remember to search before =))