rendered paste bodyvar keyIsLeft:Boolean = false;
var keyIsRight:Boolean = false;
function onKeyDown() {
if (Key.getCode() == 37) {
keyIsLeft = true;
_root.CharacterMC.loadMovie("ChrisWalkBkward.swf", 3);
trace("startLoading");
}
else if (Key.getCode() == 39) {
keyIsRight = true;
_root.CharacterMC.loadMovie("ChrisWalk.swf", 3);
trace("startLoading");
}
function onKeyUp() {
if (keyIsLeft == true || keyIsRight == true) {
_root.CharacterMC.loadMovie("ChrisStandJUMPY.swf", 3);
keyIsLeft = false;
keyIsRight = false;
//trace("stop loading");
}
}
}
Key.addListener(this);